Examples of findProcessInstanceById()


Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    // 创建流程实例管理器
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    // 获取流程实例
    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId);

   
    if(!processInstanceImpl.isSuspended()){
      throw new FixFlowException("流程实例没有暂停,不能恢复");
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    // 创建流程实例管理器
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    // 获取流程实例
    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId);

    // 结束流程实例
    processInstanceImpl.termination();
 
    try {
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

        .getDefinitions().getElement(nodeId);

    TaskCommandInst taskCommand = userTask.getTaskCommandsMap().get(
        userCommandId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager
        .findProcessInstanceById(processInstanceId, processDefinition);

    processInstanceImpl.getContextInstance().addTransientVariable(
        "fixVariable_userCommand", userCommandId);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processInstance.getProcessDefinitionId());

   

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
    TokenEntity tokenEntity = processInstanceImpl.getTokenMap().get(tokenId);
    if(transientVariables!=null&&transientVariables.keySet().size()>0){
      processInstanceImpl.getContextInstance().setTransientVariableMap(transientVariables);
   
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

      ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

     
     
      ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

   

      List<TaskInstanceEntity> taskInstances = processInstanceImpl.getTaskMgmtInstance().getTaskInstanceEntitys();
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    // 创建流程实例管理器
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    // 获取流程实例
    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId);

   
    if(processInstanceImpl.isSuspended()){
      throw new FixFlowException("流程实例已经暂停,不能再次暂停");
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processInstance.getProcessDefinitionId());

   

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
    TokenEntity tokenEntity = processInstanceImpl.getTokenMap().get(tokenId);
    processInstanceImpl.getContextInstance().setTransientVariableMap(transientVariables);
   
    if(nodeId==null){
      Event event=(Event)tokenEntity.getFlowNode();
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager.findProcessInstanceById()

    ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);

    TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);

    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.