Examples of findLatestProcessDefinitionById()


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

  public Map<String, Map<String, Object>> execute(CommandContext commandContext) {
    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>>();
View Full Code Here

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

  public String execute(CommandContext commandContext) {

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();
   
    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
   
    String nowLanguage="defauld";
    //当前语言
    if(commandContext.getProcessEngineConfigurationImpl().getFixFlowResources()!=null){
      nowLanguage=commandContext.getProcessEngineConfigurationImpl().getFixFlowResources().getNowLanguage();
View Full Code Here

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

    ProcessInstanceManager processInstanceManager = commandContext.getProcessInstanceManager();

 
    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processInstance.getProcessDefinitionId());

   

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
    TokenEntity tokenEntity = processInstanceImpl.getTokenMap().get(tokenId);
View Full Code Here

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

public class CoreUtil {

  public static List<TaskCommandInst> getTaskCommandInst(TaskInstance taskInstance,boolean isProcessTracking) {

    ProcessDefinitionManager processDefinitionManager = Context.getCommandContext().getProcessDefinitionManager();
    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(taskInstance.getProcessDefinitionId());

    return getTaskCommandInst(taskInstance, processDefinition,isProcessTracking);

  }
View Full Code Here

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

    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

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

    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);
View Full Code Here

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

  public List<T> execute(CommandContext commandContext) {

   
    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);

    List<T> userCommandQueryList = new ArrayList<T>();
    Object flowNodeObject = processDefinition.getDefinitions().getElement(nodeId);
    if (flowNodeObject != null && flowNodeObject instanceof UserTask) {
      userCommandQueryList = (List<T>)((UserTaskBehavior) flowNodeObject).getTaskCommands();
View Full Code Here

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

    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

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

    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

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

      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;
      }
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.