Package com.founder.fix.fixflow.core.impl.bpmn.behavior

Examples of com.founder.fix.fixflow.core.impl.bpmn.behavior.TaskCommandInst


    // 获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand = getTaskCommandInst();
   
    ProcessInstanceEntity processInstanceImpl=getProcessInstance();
   
    ProcessDefinitionBehavior processDefinition=processInstanceImpl.getProcessDefinition();
View Full Code Here


    // 获取当前正在操作的任务对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取当前正在操作的任务命令
    TaskCommandInst taskCommand = getTaskCommandInst();

    String owner = taskInstance.getOwner();


    taskInstance.customEnd(taskCommand, taskComment);
View Full Code Here

    // 获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand = getTaskCommandInst();

    try {

      UserTaskBehavior backNodeUserTask = (UserTaskBehavior) getExecutionContext().getProcessDefinition().getDefinitions().getElement(rollBackNodeId);
      taskInstance.toFlowNodeEnd(taskCommand, taskComment, backNodeUserTask, null);
View Full Code Here

   
    if(commandId==null){
      return;
    }
    else{
      TaskCommandInst taskCommandInst=userTask.getTaskCommandsMap().get(commandId);
     
     
      if (taskCommandInst != null && taskCommandInst.getExpression() != null) {
        try {
         
          ExpressionMgmt.execute(taskCommandInst.getExpression(), executionContext);
        } catch (Exception e) {
          throw new FixFlowException("用户命令表达式执行异常!", e);
        }
      }
     
     
      TaskInstanceEntity taskInstanceImpl=(TaskInstanceEntity)executionContext.getTaskInstance();
     
     
      if(taskInstanceImpl!=null){
       
        taskInstanceImpl.setAssignee(Authentication.getAuthenticatedUserId());
       
        taskInstanceImpl.end();
        taskInstanceImpl.setDueDate(new Date());
        taskInstanceImpl.setDraft(false);
        taskInstanceImpl.setCommandId(commandId);
        taskInstanceImpl.setCommandType(StringUtil.getString(taskCommandInst.getTaskCommandType()));
        taskInstanceImpl.setCommandMessage(taskCommandInst.getName());
        taskInstanceImpl.setTaskComment(this.opinion);
        taskInstanceImpl.setAgent(null);

       
      }
View Full Code Here

   
    if(commandId==null){
      return;
    }
    else{
      TaskCommandInst taskCommandInst=userTask.getTaskCommandsMap().get(commandId);
     
     
      if (taskCommandInst != null && taskCommandInst.getExpression() != null) {
        try {
         
          ExpressionMgmt.execute(taskCommandInst.getExpression(), executionContext);
        } catch (Exception e) {
          throw new FixFlowException("用户命令表达式执行异常!", e);
        }
      }
     
     
      List<TaskInstanceEntity> taskInstances= token.getProcessInstance().getTaskMgmtInstance().getTaskInstanceEntitys(token);
      for (TaskInstanceEntity taskInstanceEntity : taskInstances) {
        if(taskInstanceEntity.hasEnded()){
          taskInstanceEntity.setCommandId(taskCommandInst.getId());
          taskInstanceEntity.setCommandMessage(opinion);
          taskInstanceEntity.setCommandType(taskCommandInst.getTaskCommandType());
        }
      }
    }
   
   
View Full Code Here

   
    //获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance=getTaskInstanceEntity();
   
    //获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand=getTaskCommandInst();
   
    if(taskInstance!=null){
      //结束任务
      taskInstance.customEnd(taskCommand, this.taskComment);
     
View Full Code Here

    // 获取当前正在操作的任务对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取当前正在操作的任务命令
    TaskCommandInst taskCommand = getTaskCommandInst();

    // 结束当前任务,但是不驱动令牌继续向下
    taskInstance.customEnd(taskCommand, taskComment);

    // 获取当前任务的处理者
View Full Code Here

    // 获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand = getTaskCommandInst();
   

    List<TaskInstance> taskInstanceQueryTos = (new GetRollBackTaskCmd(this.taskId)).execute(commandContext);
   
    UserTask userTask=(UserTask)taskInstance.getToken().getFlowNode();
   

   
    ExecutionContext executionContext = getExecutionContext();

    Object expressionValue = null;
    if (taskCommand != null && taskCommand.getExpression() != null) {
      try {

        expressionValue = ExpressionMgmt.execute(taskCommand.getExpression(), executionContext);

      } catch (Exception e) {
        throw new FixFlowException(taskInstance.getToken().getFlowNode().getName()+ " 节点,用户命令表达式执行异常!", e);
      }
    }
View Full Code Here

    // 获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand = getTaskCommandInst();

    if (taskInstance.hasEnded()) {
      throw new FixFlowBizException("当前的任务已经结束,无法继续处理!");
    }
View Full Code Here

    // 获取正在操作的任务实例对象
    TaskInstanceEntity taskInstance = getTaskInstanceEntity();

    // 获取正在操作的任务命令对象实例
    TaskCommandInst taskCommand = getTaskCommandInst();
   
   
   
   
   
   

   

    if (taskInstance != null) {
      // 结束任务
      taskInstance.customEnd(taskCommand, this.taskComment);

    }

    ProcessInstanceEntity processInstanceImpl = getProcessInstance();
   
    String parentProcessTokenId=processInstanceImpl.getParentProcessInstanceTokenId();
    if(StringUtil.isEmpty(parentProcessTokenId)){
      throw new FixFlowException("流程实例没有父流程");
    }
   
    // 终止流程实例
    processInstanceImpl.termination();

    saveProcessInstance(commandContext);

    ProcessInstanceEntity parentProcessInstance = processInstanceImpl.getParentProcessInstance();

    parentProcessInstance.terminationSubProcess(parentProcessTokenId);
   
   

   

    ExecutionContext subExecutionContext = getExecutionContext();

    Object expressionValue = null;
    if (taskCommand != null && taskCommand.getExpression() != null) {
      try {

        expressionValue = ExpressionMgmt.execute(taskCommand.getExpression(), subExecutionContext);

      } catch (Exception e) {
        throw new FixFlowException(taskInstance.getToken().getFlowNode().getName() + " 节点,用户命令表达式执行异常!", e);
      }
    }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.bpmn.behavior.TaskCommandInst

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.