📄 participantworklist.java
字号:
/* * ParticipantWorkList.java * * Created on 2004年12月29日, 下午3:57 */package workflow.xwfbox.engine;import workflow.xwfbox.resource.*;import workflow.xwfbox.worklist.*;import java.util.Vector;import java.util.Date;import java.util.Calendar;/** * * @author Administrator */public class ParticipantWorkList { /** Creates a new instance of ParticipantWorkList */ public ParticipantWorkList() { } /** * @param args the command line arguments */ public static void main(String[] args) { // Test data setting String participantId = "001"; String type = "HUMAN"; String workItemId = "START%Business_Example_Wor1%001%1104416839872";// // Find participant worklist path// ResourceManager rm = new ResourceManager();// String worklistPath = rm.getWorkListPath("HUMAN");// // Get the participant worklist// WorkListManager wm = new WorkListManager(participantId, worklistPath);// Vector workItems = wm.getWorkItems();// WorkItem workItem = wm.getWorkItem(workItemId);// // String instanceId = workitem.getInstanceId();// // // Submit the workitem, update workItem first// wm.setWorkItemState(workItemId, "FINISH");// Calendar rightNow = Calendar.getInstance();// Date time = rightNow.getTime();// wm.setWorkItemFinishTime(workItemId, time);// wm.update(); // Call engine that the item has finished WorkflowEngine we = new WorkflowEngine(); we.informTaskFinish(workItemId, participantId, type); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -