Package org.uengine.processmanager

Examples of org.uengine.processmanager.ProcessManagerRemote.applyChanges()


    public void completeWorkitem(java.lang.String in0, java.lang.String in1, java.lang.String in2, org.uengine.kernel.ResultPayload in3) throws java.rmi.RemoteException {
        try {
          ProcessManagerRemote pm = processManagerFactory.getProcessManager();
      pm.completeWorkitem(in0, in1, in2, in3);
      pm.applyChanges();
    } catch (Exception e) {
      throw new RemoteException("WebServiceRemote:", e);
    }
    
    }
View Full Code Here


        String fantomInstanceId = pm.initialize(processDefinition, null, loggedRoleMapping);
       
//        ProcessInstance piRemote = pm.getProcessInstance(fantomInstanceId);
        pm.executeProcess(fantomInstanceId);
       
        pm.applyChanges();
       
        instanceId = fantomInstanceId;

        if (tx != null && tx.getStatus() != Status.STATUS_NO_TRANSACTION)
          tx.commit();
View Full Code Here

      if (tx != null)
        tx.begin();

      isSuccess = workflowService.putRoleMapping(instanceId, roleMapping, pm);
      pm.applyChanges();

      if (tx != null && tx.getStatus() != Status.STATUS_NO_TRANSACTION)
        tx.commit();

    } catch (Exception e) {
View Full Code Here

          }

          try {
            Thread.sleep(getMilliSecond());
            fireComplete(instance);
            pm.applyChanges();
          } catch (Exception e) {
            try {
              pm.cancelChanges();
              pm.remove();
             
View Full Code Here

              pm = pmfb.getProcessManager();
              instance = pm.getProcessInstance(instanceId);

              fireFault(instance, e);
             
              pm.applyChanges();
            } catch (Exception e1) {
              e1.printStackTrace();
            }
          } finally{
            try {
View Full Code Here

    instance = pmb.getProcessInstance(instanceId);
    if(instance.isRunning("")){ // if STOP signaled, don't execute anymore.
      activity = instance.getProcessDefinition().getActivity(tracingTag);
      activity.setRetryCount(instance, 5);
      instance.execute(tracingTag);
      pmb.applyChanges();
    }
   
    //ProcessDefinition pd = ProcessDefinition.getDefinition(definitionName, instance.getProcessTransactionContext());
   
/*    Parameter parameter = (Parameter)message.getObject("parameter");
View Full Code Here

                PrintStream logWriter = (elapsedTime < ERROR_LEVEL_TIMEINMS ? System.out : System.err);
               
                logWriter.println("- [uEngine] End Executing Activity: " + act.getName() + " (" + act.getTracingTag() + ") - Elapsed Time : " + elapsedTime);
               
                if(pm!=null)
                  pm.applyChanges();
               
                success = true;
               
              }catch(Exception e){
 
View Full Code Here

                               
                              }catch(Exception e){
                                throw new RuntimeException(e);
                                //e.printStackTrace();
                              }
                              pm.applyChanges();
                            } catch (Exception e1) {
                              if(pm!=null)
                                try {
                                  pm.cancelChanges();
                                } catch (RemoteException e) {
View Full Code Here

          }
        } else {
          deleteSchedule(item.getIdx());
        }
       
        pm.applyChanges()
     
      } catch (Exception e) {
        try {
          pm.cancelChanges();
        } catch (Exception e1) {
View Full Code Here

    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.approvalDraftActivityComplete(adacMsg);
      pm.applyChanges();
     
      if (StringUtils.hasText(adacMsg.getInstanceId()) && StringUtils.hasText(adacMsg.getEndpoint())) {
        taskInfoList = pms.getTaskInfo(adacMsg.getInstanceId(), adacMsg.getEndpoint());
      }
     
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.