ExecutionAdministration ea = Shark.getInstance().getAdminInterface().getExecutionAdministration();
ea.connect(userName, passWord, engineName, null);
// parentPRocId 為父流程序號, 且parentActivityId是創建子流程的活動序號
WfActivity wfa = ea.getActivity(parentProcId, parentActivityId);
WfProcess[] performers = wfa.get_sequence_performer(0);
if ( performers != null && performers.length > 0 )
{
// subProcId為子流程序號
subProcId = performers[0].key();
}
新聞熱點
疑難解答