Package com.founder.fix.fixflow.core.impl.persistence

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager


        .taskAssignee(Authentication.getAuthenticatedUserId()).addTaskType(TaskInstanceType.FIXFLOWTASK).addTaskType(TaskInstanceType.FIXNOTICETASK).taskIsEnd().list();

    String tokenId = taskInstanceQuery.getTokenId();
    String nodeId = taskInstanceQuery.getNodeId();
    String processDefinitionId = taskInstanceQuery.getProcessDefinitionId();
    ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();

    String processInstanceId = taskInstanceQuery.getProcessInstanceId();

    ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

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

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

    ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
   
View Full Code Here


   
   
   
    String tokenId = taskInstanceQuery.getTokenId();
    String processDefinitionId = taskInstanceQuery.getProcessDefinitionId();
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    String processInstanceId = taskInstanceQuery.getProcessInstanceId();

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

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

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

    // 获取任务管理器
    TaskManager taskManager = commandContext.getTaskManager();

    // 获取任务管理器
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    // 根据指定id查询出任务的TO 不能做改变操作
    TaskInstance taskInstanceQuery = taskManager.findTaskById(taskId);

    if (taskInstanceQuery == null) {
      throw new FixFlowBizException("未查询到指定的任务");
    }

    String processInstanceId = taskInstanceQuery.getProcessInstanceId();

    String tokenId = taskInstanceQuery.getTokenId();

    String nodeId = taskInstanceQuery.getNodeId();

    this.processInstanceAbstract = processInstanceManager.findProcessInstanceById(processInstanceId);

    TokenEntity tokenEntity = this.processInstanceAbstract.getTokenMap().get(tokenId);

    this.executionContextAbstract = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(tokenEntity);
View Full Code Here

    TaskInstance taskInstanceQuery = taskManager.findTaskById(taskId);
   
   
    String tokenId = taskInstanceQuery.getTokenId();
    String processDefinitionId = taskInstanceQuery.getProcessDefinitionId();
    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

    String processInstanceId = taskInstanceQuery.getProcessInstanceId();

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

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

    TokenEntity token=processInstanceImpl.getTokenMap().get(tokenId);
   
   
   
View Full Code Here

    return processDefinitionManager;
  }

  public ProcessInstanceManager getProcessInstanceManager() {
    ProcessInstanceManager processInstanceManager = new ProcessInstanceManager();
    processInstanceManager.setCommandContext(this);

    return processInstanceManager;
  }
View Full Code Here

          .taskAssignee(Authentication.getAuthenticatedUserId()).taskIsEnd().list();

      String tokenId = taskInstance.getTokenId();

      String processDefinitionId = taskInstance.getProcessDefinitionId();
      ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();

      String processInstanceId = taskInstance.getProcessInstanceId();

      ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

      ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

      ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
      if(processInstanceImpl.hasEnded()){
        return false;
      }
      TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);
View Full Code Here

     
     
      String tokenId = taskInstance.getTokenId();

      String processDefinitionId = taskInstance.getProcessDefinitionId();
      ProcessInstanceManager processInstanceManager =Context.getCommandContext().getProcessInstanceManager();

      String processInstanceId = taskInstance.getProcessInstanceId();

      ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();

      ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);


      ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
      if(processInstanceImpl.hasEnded()){
        return false;
      }

      TokenEntity token = processInstanceImpl.getTokenMap().get(tokenId);
View Full Code Here

   */
  public ProcessInstanceEntity getParentProcessInstance() {
    if (this.parentProcessInstance == null) {

      if (StringUtil.isNotEmpty(this.parentProcessInstanceId)) {
        ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();
        ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(this.parentProcessInstanceId, null);
        if (processInstanceImpl != null) {
          this.parentProcessInstance = processInstanceImpl;
        }
        return processInstanceImpl;
      } else {
View Full Code Here

    queryVariablesCommand.setProcessInstanceId(this.getId());
    return Context.getCommandContext().getVariableManager().queryVariable(queryVariablesCommand);
  }

  public List<ProcessInstanceEntity> getSubProcessInstanceList() {
    ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();
    List<ProcessInstanceEntity> processInstanceEntities = processInstanceManager.findSubProcessInstanceById(this.getId());
    return processInstanceEntities;
  }
View Full Code Here

    List<ProcessInstanceEntity> processInstanceEntities = processInstanceManager.findSubProcessInstanceById(this.getId());
    return processInstanceEntities;
  }

  public List<ProcessInstanceEntity> getSubProcessInstanceList(String tokenId) {
    ProcessInstanceManager processInstanceManager = Context.getCommandContext().getProcessInstanceManager();
    List<ProcessInstanceEntity> processInstanceEntities = processInstanceManager.findSubProcessInstanceByIdAndToken(this.getId(), tokenId);
    return processInstanceEntities;
  }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.persistence.ProcessInstanceManager

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.