Package org.uengine.ui.flowchart.impl

Examples of org.uengine.ui.flowchart.impl.MakeProcessDefinitionToJSON


    }
    String instanceId = arg0.getParameter("instanceId");
    String defVerId = arg0.getParameter("defVerId");
    String defId = arg0.getParameter("defId");
   
    MakeProcessDefinitionToJSON mkProcessDefinitionToJSON = null;
    MakeProcessInstanceToJSON mkProcessInstanceToJSON = null;
    String result = null;
   
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
   
    try {
      pm = processManagerFactory.getProcessManagerForReadOnly();
     
      if (instanceId != null) {
        mkProcessInstanceToJSON = new MakeProcessInstanceToJSON(pm.getProcessInstance(instanceId));
        mkProcessInstanceToJSON.setOnlyHumanActivity(onlyHumanActivity);
        mkProcessInstanceToJSON.setPm(pm);
        result = mkProcessInstanceToJSON.toJSON(pm.getProcessDefinitionWithInstanceId(instanceId));
      } else {
        mkProcessDefinitionToJSON = new MakeProcessDefinitionToJSON();
        mkProcessDefinitionToJSON.setOnlyHumanActivity(onlyHumanActivity);
        if (defVerId != null) {
          result = mkProcessDefinitionToJSON.toJSON(pm.getProcessDefinition(defVerId));
        } else if (defId != null) {
          String tempDefVerId = pm.getProcessDefinitionProductionVersion(defId);
          result = mkProcessDefinitionToJSON.toJSON(pm.getProcessDefinition(tempDefVerId));
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
View Full Code Here

TOP

Related Classes of org.uengine.ui.flowchart.impl.MakeProcessDefinitionToJSON

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.