Shark api 应用:获得子流程(sub process)

类别:Java 点击:0 评论:0 推荐:
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();
}

本文地址:http://com.8s8s.com/it/it13634.htm