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

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


      TokenEntity tokenObj, TaskQuery taskQuery) {
    Long taskNum = taskQuery.tokenId(tokenObj.getId()).nodeId(flowNode.getId()).count();
    if (taskNum != 0) {

      tokenObj.terminationChildToken();
      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(tokenObj);
      executionContext.setToFlowNode(flowNode);
      executionContext.setRollBackAssignee(rollBackAssignee);
      tokenObj.signal(executionContext);
      return true;
    } else {
      if (tokenObj.getParent() != null) {
        return toFlowNodeEnd(taskCommandInst, taskComment, flowNode, rollBackAssignee, tokenObj.getParent(), taskQuery);
View Full Code Here


  // 令牌流转
  // ////////////////////////////////////////////////////////

  public void signal() {
    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(this);
    signal(executionContext);
  }
View Full Code Here

    TokenEntity tokenParent = this.getParent();
    if (tokenParent == null) {
      tokenParent = this;
    }
    tokenParent.terminationChildToken();
    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(tokenParent);
    if (timeOutNode != null) {
      executionContext.setTimeOutNode(timeOutNode);
    }
    flowNode.leave(executionContext);
  }
View Full Code Here

        return false;
      }

      TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);
 
      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
     
      Object returnValueObject=null;
      if (taskCommandInst != null && taskCommandInst.getExpression() != null) {
        try {
         
View Full Code Here

  public void start() {
    if (this.getRootToken().getFlowNode() == null) {
      // 设置流程实例的开始时间
      this.startTime = new Date();

      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(this.getRootToken());

      getProcessDefinition().getTaskSubject().getExpressionValue();
      String processInstanceSubjectExpression = getProcessDefinition().getTaskSubject().getExpressionValue();

      try {
View Full Code Here

  public void start(FlowNode flowNode) {
    if (this.getRootToken().getFlowNode() == null) {
      // 设置流程实例的开始时间
      this.startTime = new Date();

      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(this.getRootToken());

      getProcessDefinition().getTaskSubject().getExpressionValue();
      String processInstanceSubjectExpression = getProcessDefinition().getTaskSubject().getExpressionValue();

      try {
View Full Code Here

  public void noneStart() throws Exception {
    if (this.getRootToken().getFlowNode() == null) {
      // 设置流程实例的开始时间
      this.startTime = new Date();

      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(this.getRootToken());
      getProcessDefinition().getTaskSubject().getExpressionValue();
      String processInstanceSubjectExpression = getProcessDefinition().getTaskSubject().getExpressionValue();

      try {
        Object result = ExpressionMgmt.execute(processInstanceSubjectExpression, executionContext);
View Full Code Here

  public void timeStart(String nodeId) throws Exception {
    if (this.getRootToken().getFlowNode() == null) {
      // 设置流程实例的开始时间
      this.startTime = new Date();

      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(this.getRootToken());

      String processInstanceSubjectExpression = "";
      if (getProcessDefinition().getTaskSubject() != null) {
        processInstanceSubjectExpression = getProcessDefinition().getTaskSubject().getExpressionValue();
      }
View Full Code Here

  public void end() {
    getRootToken().end();
    if (endTime == null) {
      // 设置流程结束时间
      endTime = new Date();
      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(getRootToken());
      // 插入流程结束任务
      if (this.getProcessDefinition().getStartElement() != null && this.getProcessDefinition().getStartElement() instanceof StartEvent) {
        // 插入流程结束记录
        StartEventBehavior startEventBehavior = (StartEventBehavior) this.getProcessDefinition().getStartElement();
        if (startEventBehavior.isPersistence()) {
View Full Code Here

    if (endTime == null) {
      // 设置流程结束时间
      endTime = new Date();
      // 更新实例状态为终止
      this.setInstanceType(ProcessInstanceType.TERMINATION);
      ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(getRootToken());
      // 触发流程实例终止事件
      getProcessDefinition().fireEvent(BaseElementEvent.EVENTTYPE_PROCESS_ABORT, executionContext);
      // 强制终止没有结束的子流程
      terminationSubProcess();
    }
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.