Examples of ProcessInstanceDAO


Examples of org.apache.ode.bpel.dao.ProcessInstanceDAO

            // time,
                    new BpelProcess.InvokeHandler() {
                        public boolean invoke(PartnerLinkMyRoleImpl target, RoutingInfo routing, boolean createInstance) {
                            if (routing.messageRoute == null && createInstance) {
                                __log.debug("creating new instance via live communication mex:" + mex);
                                ProcessInstanceDAO newInstance = processDAO.createInstance(routing.correlator);

                                ReplayerContext context = new ReplayerContext(null);
                                context.bpelEngine = (BpelEngineImpl) engine;
                                contexts.add(context);
View Full Code Here

Examples of org.uengine.persistence.processinstance.ProcessInstanceDAO

      } else {
        targetProcessInstanceId = new Long(instance.getRootProcessInstanceId());
      }
     
      ProcessInstanceDAOType piDAOF = ProcessInstanceDAOType.getInstance(instance.getProcessTransactionContext());
      ProcessInstanceDAO piDAO = piDAO = piDAOF.getSiblingProcessInstances(targetProcessInstanceId, this.isTerminateRunAndForgetSubProcess());

      Hashtable options = new Hashtable();
      options.put("ptc", instance.getProcessTransactionContext());

      while (piDAO.next()) {
        ProcessInstance theInstance = ProcessInstance.create().getInstance(piDAO.getInstId().toString(), options);
        theInstance.stop(terminateStatus);
        if (targetPI != null && targetPI.isSubProcess()) {
          targetPI.getProcessDefinition().returnToMainProcess(targetPI);
        }
      }
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.ProcessInstanceDAO

        return step;
    }

  public String internalInvoke(final TaskWatch watch) {
    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    ProcessInstanceDAO dao = ctx.getProcessInstanceDAO();
    ProcessInstance pi = dao.getProcessInstance(Long.parseLong(processInstanceId));
    if (pi.getInternalId() == null) {
        pi.setInternalId(context.getScopeInstance().getExecution().getProcessInstance().getId());
        dao.saveProcessInstance(pi);
    }

    final ProcessToolProcessStep stepInstance = ctx.getRegistry().getStep(stepName);
    if (stepInstance == null) {
        throw new IllegalArgumentException("No step defined by name: " + stepName);
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.