Package com.founder.fix.fixflow.core.runtime

Examples of com.founder.fix.fixflow.core.runtime.ExecutionContext


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

    processInstanceImpl.getContextInstance().setTransientVariableMap(
        transientVariables);

    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE
        .createExecutionContext(token);

    if (taskCommand != null && taskCommand.getExpression() != null) {
      try {
View Full Code Here


   
    ProcessInstanceEntity processInstance=commandContext.getProcessInstanceManager().findProcessInstanceById(this.processInstanceId);
   
    TokenEntity token=processInstance.getTokenMap().get(this.tokenId);
   
    ExecutionContext executionContext=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
   
   
    if(this.taskId!=null&&!this.taskId.equals("")){
      TaskInstanceEntity taskInstanceEntity=processInstance.getTaskMgmtInstance().getTaskInstanceEntitys(taskId);
      executionContext.setTaskInstance(taskInstanceEntity);
    }
   
    if(this.connectorId!=null&&!this.connectorId.equals("")){
     
      FlowNodeImpl flowNode=(FlowNodeImpl)processInstance.getProcessDefinition().getDefinitions().getElement(this.nodeId);
View Full Code Here

          //boundaryEvent.leave(executionContext);
        }
        else{
          TokenEntity nodeToken=((FlowNodeImpl)tokenEntity.getFlowNode()).createForkedToken(tokenEntity, boundaryEvent.getId()).token;
         
          ExecutionContext nodeChildExecutionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(nodeToken);
          //设置超时节点
          nodeChildExecutionContext.setTimeOutNode(activity);
          boundaryEvent.leave(nodeChildExecutionContext);
          //this.forkedTokenEnter(nodeChildExecutionContext);
        }
       
       
View Full Code Here

   
   
    if(taskInstance!=null){
      ProcessInstanceEntity processInstanceEntity=Context.getCommandContext().getProcessInstanceManager().findProcessInstanceById(taskInstance.getProcessInstanceId());
      if(processInstanceEntity!=null){
        ExecutionContext executionContext=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(processInstanceEntity.getRootToken());
        for (TaskCommandInst taskCommandInstObj : taskCommandInstsNew) {
          taskCommandInstObj.clearParamMap();
          taskCommandInstObj.execExpressionParam(executionContext,null);
        }
      }
View Full Code Here

            TokenEntity nowToken = parentToken.getChildren().get(tokenKey);
            nowToken.setAbleToReactivateParent(false);
            nowToken.setEndTime(new Date());
          }

          ExecutionContext parentContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(parentToken);

          leave(parentContext);
        }

      }
View Full Code Here

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

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

    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
   
   
    UserTaskBehavior userTask = (UserTaskBehavior) processDefinition.getDefinitions().getElement(nodeId);
   
    TaskCommandInst taskCommandInst =userTask.getTaskCommandsMap().get(taskCommandId);
View Full Code Here

  public void addDataVariable(String variableKey, Object variableObj) {
    // TODO 自动生成的方法存根
    ExpressionMgmt.setVariable("fixflowdatavariable_"+variableKey, variableObj);
    ProcessInstanceEntity processInstanceEntity=(ProcessInstanceEntity)this.processInstance;
    ExecutionContext executionContext=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(processInstanceEntity.getRootToken());
    //ExpressionMgmt.execute("fixflowdatavariable_"+variableKey, executionContext);
    ExpressionMgmt.execute("${"+variableKey+"}=fixflowdatavariable_"+variableKey+";",executionContext);
   
    ExpressionMgmt.execute("${"+variableKey+"}", executionContext);
  }
View Full Code Here

    }
    */
    TokenEntity token=new TokenEntity(executionContext.getToken(), this.name);
    token.setSubProcessRootToken(true);
    StartEvent startEvent=(StartEvent)getStartElement();
    ExecutionContext executionContextSub=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
    startEvent.enter(executionContextSub);
   
   
  }
View Full Code Here

    // 获取当前正在操作的流程实例对象
    ProcessInstanceEntity processInstance = getProcessInstance();
    // 将新创建的出的任务插入任务管理器中
    processInstance.getTaskMgmtInstance().addTaskInstanceEntity(taskInstanceNew);
    // 获取流程上下文
    ExecutionContext executionContext = getExecutionContext();
    // 触发节点的任务分配事件
    ((FlowNodeImpl) executionContext.getToken().getFlowNode()).fireEvent(BaseElementEvent.EVENTTYPE_TASK_ASSIGN, executionContext, taskInstanceNew);

    saveProcessInstance(commandContext);
   
    return null;
View Full Code Here

    //获取指定的节点
    BaseElement baseElement=processDefinition.getDefinitions().getElement(nodeId);
    if(baseElement instanceof FlowNode){
     
      FlowNode flowNode= (FlowNode)baseElement;
      ExecutionContext executionContext=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
      //让令牌进入节点开始走流程
      flowNode.enter(executionContext);
     
    }else{
     
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.runtime.ExecutionContext

Copyright © 2018 www.massapicom. 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.