Package org.uengine.processmanager

Examples of org.uengine.processmanager.ProcessManagerFactoryBean


    System.out.println(dwMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.delegateWorkItem(dwMsg);
      pm.applyChanges();
     
View Full Code Here


    System.out.println(alcMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.approvalLineChange(alcMsg);
      pm.applyChanges();
     
View Full Code Here

    out.close();
  }

  private boolean validateSingleData(String alias) {
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    ProcessDefinitionRemote[] pds = null;
    ProcessDefinitionRemote pdr = null;
    boolean val = true;
    try {
      pm = processManagerFactory.getProcessManagerForReadOnly();
      pds = pm.listProcessDefinitionRemotesLight();
      for (int i = 0; i < pds.length; i++) {
        pdr = pds[i];
        if (pdr.getAlias() != null && pdr.getAlias().equals(alias)) {
          val = false;
View Full Code Here

    }
    return val;
  }

  private boolean[] validateMultiData(String paras) {
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    ProcessDefinitionRemote[] pds = null;
    ProcessDefinitionRemote pdr = null;

    String[] aliass = new String[paras.split("\\|").length];
    int count=0;
    StringTokenizer st = new StringTokenizer(paras, "|");
    while (st.hasMoreElements()) {
      aliass[count] = st.nextToken();
      count++;
    }

    boolean[] val = new boolean[aliass.length];

    try {
      pm = processManagerFactory.getProcessManagerForReadOnly();
      pds = pm.listProcessDefinitionRemotesLight();
      for (int j = 0; j < aliass.length; j++) {
        for (int i = 0; i < pds.length; i++) {
          pdr = pds[i];
          if (pdr.getAlias() != null && pdr.getAlias().equals(aliass[j])) {
View Full Code Here

 
    String defId = request.getParameter("processDefinition");
    ProcessManagerRemote pm = null;
   
    try{
      ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
      pm = processManagerFactory.getProcessManagerForReadOnly();
      pm.exportProcessDefinitionbyDefinitionId(defId, false);
     
      String fileName = "";
      if(!defId.equals("-1")){
        fileName = pm.getProcessDefinitionRemoteByDefinitionId(defId).getName().getText();
View Full Code Here

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

   
    String returnEndpoint = null;
    String returnInstanceId = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, request);
     
      if (StdMsgContext.CMD_PROCESS_START.equalsIgnoreCase(cmdBpm)) {
        ProcessStartMsg psMsg = stdMsgContext.bindProcessStartMsg(request);
View Full Code Here

    System.out.println(wiaMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.workItemAccept(wiaMsg);
      pm.applyChanges();
     
View Full Code Here

    System.out.println(ipiMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.initializeProcessInstance(ipiMsg);
      pm.applyChanges();
     
View Full Code Here

    System.out.println(psMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      String newInstanceId = pms.processStart(psMsg);
      pm.applyChanges();
     
View Full Code Here

TOP

Related Classes of org.uengine.processmanager.ProcessManagerFactoryBean

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.