WEB开发网
开发学院WEB开发Jsp Shark api 应用:获得父流程(parent process) 阅读

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

 2008-01-05 18:42:50 来源:WEB开发网   
核心提示:ExecutionAdministration ea = Shark.getInstance().getAdminInterface().getExecutionAdministration();ea.connect(userName, passWord, engineName, null);// subPRocId为

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


Tags:Shark api 应用

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接