ExecutionAdministration ea = Shark.getInstance().getAdminInterface().getExecutionAdministration();
ea.connect(userName, passWord, engineName, null);
// subPRocId為子流程序號
wfeas = ea.getProcess(subProcId).get_sequence_history(0);
if ( wfeas != null )
{
for ( int i = 0; i < wfeas.length; i++ )
{
if ( wfeas[i].event_type().equals("processCreated") )
{
WfCreateProcessEventAudit wpea = (WfCreateProcessEventAudit)wfeas[i];
// parentProcId 為父流程序號
parentProcId = wpea.p_process_key() == null ? "" : wpea.p_process_key();
break;
}
}
}
新聞熱點
疑難解答