Examples of findLatestProcessDefinitionByKey()


Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionId 没有找到指定流程 = '" + processDefinitionId + "'");
      }
    } else if (processDefinitionKey != null) {
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionKey 没有找到指定流程 '" + processDefinitionKey + "'");
      }
    } else {
      throw new FixFlowException("processDefinitionKey 和 processDefinitionId 不能都为空");
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

        if(state){
          Map<String, String> dataMap=new HashMap<String, String>();
         
         

          ProcessDefinitionBehavior processDefinition = processDefinitionManager
              .findLatestProcessDefinitionByKey(processKey);
         
         
         
          String startFormKey=null;
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionId 没有找到指定流程 = '" + processDefinitionId + "'");
      }
    } else if (processDefinitionKey != null) {
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionKey 没有找到指定流程 '" + processDefinitionKey + "'");
      }
    } else {
      throw new FixFlowException("processDefinitionKey 和 processDefinitionId 不能都为空");
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionId 没有找到指定流程 = '" + processDefinitionId + "'");
      }
    } else if (processDefinitionKey != null) {
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionKey 没有找到指定流程 '" + processDefinitionKey + "'");
      }
    } else {
      throw new FixFlowException("processDefinitionKey 和 processDefinitionId 不能都为空");
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

    DbSqlSession dbSqlSession = commandContext.getDbSqlSession();

    int processDefinitionVersion;

    ProcessDefinitionBehavior latestProcessDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(process.getProcessDefinitionKey());
    if (latestProcessDefinition != null) {
      processDefinitionVersion = latestProcessDefinition.getVersion() + 1;
    } else {
      processDefinitionVersion = 1;
    }
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionId 没有找到指定流程 = '" + processDefinitionId + "'");
      }
    } else if (processDefinitionKey != null) {
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
      if (processDefinition == null) {
        throw new FixFlowException("通过 processDefinitionKey 没有找到指定流程 '" + processDefinitionKey + "'");
      }
    } else {
      throw new FixFlowException("processDefinitionKey 和 processDefinitionId 不能都为空");
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

  @SuppressWarnings("unchecked")
  public List<T> execute(CommandContext commandContext) {
   
    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);

    List<T> userCommandQueryList = new ArrayList<T>();
    Object flowNodeObject = processDefinition.getSubTask();
    if (flowNodeObject != null || flowNodeObject instanceof UserTask) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();
    ProcessDefinitionBehavior processDefinition = null;
    if(processDefinitionId!=null)
      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
    else
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
     
    DefinitionsBehavior definitions = processDefinition.getDefinitions();
    Map<String, Map<String, Object>> positionInfo=new HashMap<String, Map<String,Object>>();
    this.definitions=definitions;
    List<BPMNDiagram> BPMNDiagramList = definitions.getDiagrams();
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

      if(state){
        Map<String, String> dataMap=new HashMap<String, String>();
       
   

        ProcessDefinitionBehavior processDefinition = processDefinitionManager
            .findLatestProcessDefinitionByKey(processKey);
       
       
       
        String startFormKey=null;
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ProcessDefinitionManager.findLatestProcessDefinitionByKey()

 
  public String execute(CommandContext commandContext) {
    // TODO Auto-generated method stub
    ProcessDefinitionManager processDefinitionManager =commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager
        .findLatestProcessDefinitionByKey(processDefinitionKey);
    if(processDefinition==null)
    {
      throw new FixFlowException("Key 为 :"+processDefinitionKey+" 的流程定义不存在!");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.