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

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


   
  }

  public ProcessInstance execute(CommandContext commandContext) {

    ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();

    ProcessDefinitionBehavior processDefinition = null;
    if (processDefinitionId != null) {
      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


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


  @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

    this.processDefinitionId = processDefinitionId;
    this.processDefinitionKey= processDefinitionKey;
  }

  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>>();
    this.definitions=definitions;
    List<BPMNDiagram> BPMNDiagramList = definitions.getDiagrams();
View Full Code Here

   
  }

  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

   
   
    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

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

   
   
    List<Map<String, Object>> processDefData=commandContext.getProcessDefinitionManager().findUserSubmitProcess(this.userId,this.number);
    //CommandExecutor commandExecutor=Context.getProcessEngineConfiguration().getCommandExecutor();
   
    ProcessDefinitionManager processDefinitionManager =commandContext.getProcessDefinitionManager();
    CommandExecutor commandExecutor=Context.getProcessEngineConfiguration().getCommandExecutor();
    List<Map<String,String>> processData=new ArrayList<Map<String,String>>();
   
    for (Map<String, Object> map : processDefData) {
      String processKey=StringUtil.getString(map.get("PROCESS_KEY"));
      boolean state=commandExecutor.execute(new VerificationStartUserCmd(this.userId,processKey,null));
      if(state){
        Map<String, String> dataMap=new HashMap<String, String>();
       
   

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

    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

  }
 
 
  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

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

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.