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;
}
}
}
闽公网安备 35060202000074号