本篇紀錄如何從工作流程圖中取得表單值
1.Itemtype可以將工作流程圖簽審畫面嵌入頁籤中,方便使用者簽審。
2.新增一筆無關聯頁籤,在"Relationship View"中新增一筆資料,主要是Form選擇"Workflow Signoffs"
3.將程式放入工作流程圖中
Innovator inn = this.getInnovator();
string actId = this.getID();
string test_work_id;
Item workflow = inn.newItem("Workflow","get");
workflow.setAttribute("select","source_id");
Item wflProc = workflow.createRelatedItem("Workflow Process","get");
wflProc.setAttribute("select","name");
Item wflProcAct = wflProc.createRelationship("Workflow Process Activity","get");
wflProcAct.setAttribute("select","related_id");
wflProcAct.setProperty("related_id",actId);
workflow = workflow.apply();
test_work_id =workflow.getProperty("source_id");
Item test_work = inn.newItem("test_work","get");
test_work.setProperty("id",test_work_id);
test_work =test_work.apply();
return inn.newError(test_work.getProperty("test_require"));
4.顯示結果:將必填輸入的值,取出顯示出來。