public class ApplyAgent
extends java.lang.Object
try {
//申請に必要なパラメータを設定します。
ApplyDataBuilder4XML applyData = new ApplyDataBuilder4XML();
applyData.doInspect(
"A10007" //申請者のID
, "OrgVer_20091027094625164" //申請者が所属する組織の組織コード
, "121000" //申請者が所属するグループのグループコード
, "105" //申請者の役職コード
, "APIによる申請" //申請件名
, "BD20060512104350043_1000" //申請フォームのキー
, new File("C:\\ringisho.xml")); //申請する内容が保存されたXMLファイル
//申請処理を実行します。
ApplyAgent applyAgent = new ApplyAgent();
applyAgent.execute(applyData, ApplyAgent.APPLY);
} catch (XFlowException e) {
e.printStackTrace();
}
}
下書きを行う場合は、ApplyDataBuilder4XMLクラスのdoInspect4Saveメソッドを使用して、データを設定します。
try {
//下書きに必要なパラメータを設定します。
ApplyDataBuilder4XML saveData = new ApplyDataBuilder4XML();
saveData.doInspect4Save(
"A10007" //申請者のID
, "OrgVer_20091027094625164" //申請者が所属する組織の組織コード
, "121000" //申請者が所属するグループのグループコード
, "105" //申請者の役職コード
, "BD20060512104350043_1000" //申請フォームのキー
, new File("C:\\ringisho.xml")); //下書きする内容が保存されたXMLファイル
//下書き処理を実行します。
ApplyAgent applyAgent = new ApplyAgent();
applyAgent.execute(saveData, ApplyAgent.SAVE);
} catch (XFlowException e) {
e.printStackTrace();
}
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
APPLY
申請処理を実行することを示します。
|
static int |
SAVE
保存処理を実行することを示します。
|
コンストラクタと説明 |
---|
ApplyAgent() |
修飾子とタイプ | メソッドと説明 |
---|---|
WorkflowStatusTable |
execute(ApplyDataBuilder applyData)
非推奨です。
ワークフローシステムV3.0以降では
に置き換えられました。 |
WorkflowStatusTable |
execute(ApplyDataBuilder applyData,
ApplyOptionBuilder applyOption)
非推奨です。
ワークフローシステムV3.0以降では
に置き換えられました。 |
WorkflowStatusTable |
execute(ApplyDataBuilder applyData,
ApplyOptionBuilder applyOption,
int operation)
申請処理を実行します。
|
WorkflowStatusTable |
execute(ApplyDataBuilder applyData,
int operation)
申請処理を実行します。
|
java.lang.String |
save(SaveDataBuilder saveData)
非推奨です。
ワークフローシステムV3.0以降では
に置き換えられました。 |
public static final int APPLY
public static final int SAVE
public WorkflowStatusTable execute(ApplyDataBuilder applyData, int operation) throws XFlowException
ApplyAgent.APPLY
、またはApplyAgent.SAVE
のいずれかでなければなりません。applyData
- 申請処理に必要な情報operation
- 申請処理方法XFlowException
- 申請に必要な情報が正しくない場合public WorkflowStatusTable execute(ApplyDataBuilder applyData, ApplyOptionBuilder applyOption, int operation) throws XFlowException
ApplyAgent.APPLY
、またはApplyAgent.SAVE
のいずれかでなければなりません。ApplyOptionBuilder
で設定したコメント、添付ファイルの値のみ有効となります。applyData
- 申請処理に必要な情報applyOption
- 申請処理のオプション情報operation
- 申請処理方法XFlowException
- 申請に必要な情報が正しくない場合public WorkflowStatusTable execute(ApplyDataBuilder applyData) throws XFlowException
execute(ApplyDataBuilder, int)
に置き換えられました。applyData
- 申請処理に必要な情報XFlowException
- 申請に必要な情報が正しくない場合execute(ApplyDataBuilder, int)
public WorkflowStatusTable execute(ApplyDataBuilder applyData, ApplyOptionBuilder applyOption) throws XFlowException
execute(ApplyDataBuilder, int)
に置き換えられました。applyData
- 申請処理に必要な情報applyOption
- 申請処理のオプション情報XFlowException
- 申請に必要な情報が正しくない場合execute(ApplyDataBuilder, int)
public java.lang.String save(SaveDataBuilder saveData) throws XFlowException
execute(ApplyDataBuilder, int)
に置き換えられました。saveData
- 下書き処理に必要な情報XFlowException
- 下書き保存に必要な情報が正しくない場合execute(ApplyDataBuilder, int)