29303132333435363738
*/ public static ProcessDefinition getProcessDefinition(String key ){ if( StringUtils.isEmpty(key)) return null; WorkflowManager bean = (WorkflowManager) SpringContextHelper.getBean(WORKFLOW_MANAGER_NAME); return bean.getProcessDefinition(key); }
42434445464748495051
*/ public static HistoricProcessInstance getProcessInstance(String id ){ if( StringUtils.isEmpty(id)) return null; WorkflowManager bean = (WorkflowManager) SpringContextHelper.getBean(WORKFLOW_MANAGER_NAME); return bean.getProcessHistory( id ); }
55565758596061626364
*/ public static Task getTask(String id ){ if( StringUtils.isEmpty(id)) return null; WorkflowManager bean = (WorkflowManager) SpringContextHelper.getBean(WORKFLOW_MANAGER_NAME); return bean.getTask( id ); }
68697071727374757677
*/ public static List<Task> listTaskByProcessId(String id ){ if( StringUtils.isEmpty(id)) return null; WorkflowManager bean = (WorkflowManager) SpringContextHelper.getBean(WORKFLOW_MANAGER_NAME); return bean.listTaskByProcessId( id ); }