Shark API Application: Which event is made to the process?

xiaoxiao2021-03-06  73

// Suppose we define processes PROC1, which defines the three activities ACT1, ACT2, ACT3ExecutionAdministration ea = Shark.getInstance () getAdminInterface () getExecutionAdministration ();.. Ea.connect (userName, password, engineName, null); AdminMisc AM = shark.getinstance (). getadmininterface (). getadminmisc (); // process instance serial number, known string procid = "1_1_proc1"; // activity instance number string ActID = ""; // Get the process instance to the current The active example of the active activity [] wfAns = EA.GETPROCESS (PROCID) .GET_SEQUENCE_STEP (0); if (wfas! = Null && wfas.length> 0) {// Get the serial number ACTID = WFAS [WFAs " .length - 1] .key ();} // Get the process definition number, here you get proc1string procdefid = am.getProcessDefinitionId (Procid); // Get the activity definition number, get one of ACT1, ACT2, ACT3 String ActDefID = Am.GetActivityDefinitionId (Procid, ActID); // PS can be seen, using Shark.GetInstance (). getAdminInterface () method, you can get Shark management tool class, where API can get a lot of information

转载请注明原文地址:https://www.9cbs.com/read-91605.html

New Post(0)