首页 > 学院 > 开发设计 > 正文

Shark api 应用:获得父流程(parent process)

2019-11-18 11:24:40
字体:
来源:转载
供稿:网友

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;
        }
    }
}



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表