Package com.founder.fix.bpmn2extensions.coreconfig

Examples of com.founder.fix.bpmn2extensions.coreconfig.TaskCommandDef


    }
    // TODO Auto-generated method stub
    Object[] obj = new Object[] {expandTaskCommand}
   
   
    TaskCommandDef taskCommandDef= commandContext.getProcessEngineConfigurationImpl().getTaskCommandDefMap().get(this.expandTaskCommand.getCommandType());
    if(taskCommandDef!=null){
      String classNameString=taskCommandDef.getCmd();
      if(classNameString==null||classNameString.equals("")){
        throw new FixFlowException("配置文件中ID为 "+this.expandTaskCommand.getCommandType() + " 的扩展配置cmd属性不能为空!");
      }
     
      String commandClassNameString=taskCommandDef.getCommand();
      if(commandClassNameString==null||commandClassNameString.equals("")){
        throw new FixFlowException("配置文件中ID为 "+this.expandTaskCommand.getCommandType() + " 的扩展配置command属性不能为空!");
      }
     
      //commandClassNameString
View Full Code Here


    String bizKey = token.getProcessInstance().getBizKey();
    newTask.setBizKey(bizKey);
    newTask.setCommandId(TaskCommandType.SKIPNODE);
    newTask.setCommandType(TaskCommandType.SKIPNODE);

    TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get("skipNode");

    if (taskCommandDef.getName() != null) {
      newTask.setCommandMessage(taskCommandDef.getName());
    }

    if (skipCommentString != null && !skipCommentString.equals("")) {
      newTask.setTaskComment(skipCommentString);
    }
View Full Code Here

    taskInstance.setAssignee(Authentication.getAuthenticatedUserId());
    //taskInstance.setEndTime(newTaskEndTime);
    taskInstance.setCommandId(TaskCommandType.STARTEVENT);
    taskInstance.setCommandType(TaskCommandType.STARTEVENT);
    //taskInstance.setCommandMessage("流程启动");
    TaskCommandDef taskCommandDef=Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.STARTEVENT);
    if(taskCommandDef!=null){
      taskInstance.setCommandMessage(taskCommandDef.getName());
    }
   
   
    taskInstance.setEndTime(ClockUtil.getCurrentTime());
    //taskInstance.setCallActivityInstanceId(subProcessInstanceId);
View Full Code Here

    Date newTaskEndTime=ClockUtil.getCurrentTime();
    //taskInstance.setAssigneeId("1200119390");
    taskInstance.setEndTime(newTaskEndTime);
    taskInstance.setCommandId(TaskCommandType.RECEIVEEND);
    taskInstance.setCommandType(TaskCommandType.RECEIVEEND);
    TaskCommandDef taskCommandDef=Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.RECEIVEEND);
    if(taskCommandDef!=null){
      taskInstance.setCommandMessage(taskCommandDef.getName());
    }

    Context.getCommandContext().getTaskManager().saveTaskInstanceEntity(taskInstance);
   
View Full Code Here

    Date newTaskEndTime = ClockUtil.getCurrentTime();
    // taskInstance.setAssigneeId("1200119390");
    taskInstance.setEndTime(newTaskEndTime);
    taskInstance.setCommandId(TaskCommandType.SUBPROCESSEND);
    taskInstance.setCommandType(TaskCommandType.SUBPROCESSEND);
    TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.SUBPROCESSEND);
    if (taskCommandDef != null) {
      taskInstance.setCommandMessage(taskCommandDef.getName());
    }

    Context.getCommandContext().getTaskManager().saveTaskInstanceEntity(taskInstance);

  }
View Full Code Here

    this.name=name;
    this.expression=expression;
    this.taskCommandType=taskCommandType;
    this.isAdmin=isAdmin;
   
    TaskCommandDef taskCommandDef=ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getTaskCommandDefMap().get(taskCommandType);

    if(taskCommandDef!=null){
      isVerification=StringUtil.getBoolean(taskCommandDef.getIsEnabled());
      isSaveData=StringUtil.getBoolean(taskCommandDef.getIsSaveData());
      isSimulationRun=StringUtil.getBoolean(taskCommandDef.getIsSimulationRun());
      taskCommandDefType=taskCommandDef.getType();
    }
  }
View Full Code Here

   
    this.taskCommandType=taskCommand.getCommandType();
   
    //ych修改不从context取引擎
    //TaskCommandDef taskCommandDef=Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(taskCommandType);
    TaskCommandDef taskCommandDef=ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getTaskCommandDefMap().get(taskCommandType);

    if(taskCommandDef!=null){
      isVerification=StringUtil.getBoolean(taskCommandDef.getIsEnabled());
      isSaveData=StringUtil.getBoolean(taskCommandDef.getIsSaveData());
      isSimulationRun=StringUtil.getBoolean(taskCommandDef.getIsSimulationRun());
      taskCommandDefType=taskCommandDef.getType();
    }
   
   
   
   
View Full Code Here

    Date newTaskEndTime=ClockUtil.getCurrentTime();
    //taskInstance.setAssigneeId("1200119390");
    taskInstance.setEndTime(newTaskEndTime);
    taskInstance.setCommandId(TaskCommandType.RECEIVEEND);
    taskInstance.setCommandType(TaskCommandType.RECEIVEEND);
    TaskCommandDef taskCommandDef=Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.RECEIVEEND);
    if(taskCommandDef!=null){
      taskInstance.setCommandMessage(taskCommandDef.getName());
    }

    Context.getCommandContext().getTaskManager().saveTaskInstanceEntity(taskInstance);
   
View Full Code Here

      String taskCommandName = taskCommandInst.getName();
      // 设置流程自动结束信息 autoEnd
      this.setCommandId(taskCommandInst.getId());
      this.setCommandType(taskCommandType);
      if (taskCommandName == null) {
        TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(taskCommandType);
        if (taskCommandDef != null) {
          this.setCommandMessage(taskCommandDef.getName());
        }
      } else {
        this.setCommandMessage(taskCommandName);

      }

    } else {

      this.setCommandId(TaskCommandType.AUTOEND);
      this.setCommandType(TaskCommandType.AUTOEND);
      TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.AUTOEND);
      if (taskCommandDef != null) {
        this.setCommandMessage(taskCommandDef.getName());
      }
    }

  }
View Full Code Here

    // taskInstance.setAssigneeId(Authentication.getAuthenticatedUserId());
    // taskInstance.setEndTime(newTaskEndTime);
    taskInstance.setCommandId(TaskCommandType.ENDEVENT);
    taskInstance.setCommandType(TaskCommandType.ENDEVENT);

    TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.ENDEVENT);
    if (taskCommandDef != null) {
      taskInstance.setCommandMessage(taskCommandDef.getName());
    }
    taskInstance.setEndTime(ClockUtil.getCurrentTime());
    // taskInstance.setCallActivityInstanceId(subProcessInstanceId);
    executionContext.getProcessInstance().getTaskMgmtInstance().addTaskInstanceEntity(taskInstance);
    //Context.getCommandContext().getTaskManager().saveTaskInstanceEntity((TaskInstanceEntity) taskInstance);
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.coreconfig.TaskCommandDef

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.