承認申請の新規作業版数の属性ポピュレータ
このトピックでは、承認申請の新規作業版数の特定の属性をカスタマイズする方法について説明します。
予測される結果
この説明を読むと、主要な属性が自動的に設定または更新されるように、承認申請の新規作業版数に対して特定の属性をカスタマイズする方法を理解できます。
ソリューション
既成の承認申請属性ポピュレータを拡張するカスタムクラスの作成
カスタムクラスを登録する xconf エントリの作成
ソリューションエレメント
次のテーブルで、各種ソリューションエレメントについて説明します。
エレメント
タイプ
説明
getPopulateOnNewIterationAllowedStates(RegulatorySubmission regSub)
API
この API は、承認申請の新規作業版数に対して属性がコピー転送される状態の配列を返します。デフォルトの状態は、「作業中」、「作成」、「やり直し」です。
isPopulateOnNewIterationAllowed(RegulatorySubmission regSub)
API
この API は、新規作業版数の属性が自動設定されるかどうかを判定します。デフォルトでは、最新バージョンが getPopulateOnNewIterationAllowedStates で定義されたいずれかの状態にある場合に true を返します。
processNewIteration(RegulatorySubmission regSub)
API
この API は、承認申請に対して属性 (通常属性と進捗管理属性) をコピー転送し、リンクテーブルを更新するためのカスタマイズポイントを提供します。isPopulateOnNewIterationAllowed が true を返した場合、この API はデータが永続化された後に呼び出されます。
processPreNewIteration(RegulatorySubmission regSub)
API
この API は、属性 (通常属性と進捗管理属性) をコピー転送するためのカスタマイズポイントを提供します。isPopulateOnNewIterationAllowed が true を返した場合、この API は新規作業版数が永続化される前に 1 回呼び出されます。
デフォルトの動作
カスタムクラスの作成
承認申請の新規作業版数の特定の属性をカスタマイズするには、AbstractRegulatorySubmissionProcessor を拡張し、isPopulateOnNewIterationAllowed メソッドと processNewIteration メソッドをオーバーライドする Java クラスを作成します。オーバーライドされたメソッド isPopulateOnNewIterationAllowed および processNewIteration の最小要件を満たす新規カスタムクラスの例を以下に示します。
/**
* <BR>
* <BR>
* <B>Supported API: </B>true <BR>
*
* Returns the state where the regulatory submission attributes will be copied to new iterations. Default states are
* In Work, Creation and Rework. This API is called in isPopulateOnNewIterationAllowed
* @param regSub - The regulatory submission being iterated
* @return
* @throws WTException
*/

@Override
public State[] getPopulateOnNewIterationAllowedStates(RegulatorySubmission regSub) throws WTException
{
/*
* Overriding this method provides the means to override the states where attributes are copied forward
* for new iterations of regulatory submissions.
*/
}
/**
* Determines if the attributes should be populated on the new iteration. Returns true for latest
* version iterations for the states configured for populating on new iteration. See getPopulateOnNewIterationAllowedStates
*
* <BR>
* <BR>
* <B>Supported API: </B>true <BR>
* <B>Extendable: </B>true <br/>
*
* @param regSub
* An iteration of a latest versions of a regulatory submission
* @return a boolean value indicating whether or not the data should be populated
* for the iteration
* @throws WTException
* if a non latest version of a regulatory submission is provided as input
*/
@Override
boolean isPopulateOnNewIterationAllowed(RegulatorySubmission regSub) throws WTException
{
/*
* Overriding this method provides the means to override the algorithm that determines if the
* new iteration of the regulatory submission should have attributes populated.
*/
}
/**
* <BR>
* <BR>
* <B>Supported API: </B>true <BR>
*
* This API provides a customization point to copy forward attributes (regular and tracking) and to update the links tables for the regulatory submission.
* It will be called after it is persisted.
* <br>
* @param regSub the regulatory submission being processed
* @throws WTException
*/
@Override
public void processNewIteration(RegulatorySubmission regSub) throws WTException
{
/*
* Overriding this method provides the means to add custom data population
* to any hard or soft data on the regulatory submission during the new iteration process; on the new iteration
*/
}
/**
* <BR>
* <BR>
* <B>Supported API: </B>true <BR>
*
* This API provides a customization point to copy forward attributes (regular and tracking).
* It will be called prior to persisting the new iteration.
* <br>
* @param regSub the regulatory submission being processed
* @throws WTException
*/
@Override
public void processPreNewIteration(RegulatorySubmission regSub) throws WTException
{
/*
* Overriding this method provides the means to add custom data population
* to any hard or soft data on the regulatory submission during the new iteration process; on the new iteration
*/
}
これは役に立ちましたか?