Package com.google.code.lightssh.project.workflow.model

Examples of com.google.code.lightssh.project.workflow.model.ExecutionType


   
    String taskId = myTask.getId();
    if( StringUtils.isEmpty(taskId) )
      throw new ApplicationException("任务编号不能为空!");
   
    ExecutionType type = myTask.getType();
    if( type == null )
      throw new ApplicationException("任务操作类型不能为空!");
   
    String message = myTask.getMessage();
    if( StringUtils.isEmpty(message)  )
      throw new ApplicationException("流转意见不能为空!");
   
    Task task = taskService.createTaskQuery().taskId(myTask.getId()).singleResult();
    if( task == null )
      throw new ApplicationException("任务["+myTask.getId()+"]不存在!");
   
    //task.getParentTaskId();
    //identityService.setAuthenticatedUserId( user );
   
    //保存操作日志
    taskLogManager.save(task.getProcessInstanceId(),task.getId(),type,user, message);
   
    Map<String,Object> variables = new HashMap<String,Object>();
    variables.put(WorkflowConstant.TASK_ACTIOIN_VARIABLE_NAME,type.name());
    variables.put("passed", ExecutionType.SUBMIT.equals(type)); //TODO
   
    taskService.complete(taskId,variables); //提交
  }
View Full Code Here


   
    log.debug("流程挂钩业务处理,流程实例Id[{}],业务Key[{}],Activity名称[{}],参数[{}]=[{}]",
        new Object[]{procInstId,bizKey,execution.getCurrentActivityName()
            ,WorkflowConstant.TASK_ACTIOIN_VARIABLE_NAME,motion});
   
    ExecutionType type = null;
    if( motion != null )
      type = ExecutionType.valueOf(motion.toString());
   
    if( bizMgr != null )
      bizMgr.process(type,procDefKey,procInstId,bizKey);
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.workflow.model.ExecutionType

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.