Examples of createProcessInstance()


Examples of org.kie.runtime.KieSession.createProcessInstance()

        if (data != null) {
            for (Object o: data) {
                ksession.insert(o);
            }
        }
        ProcessInstance processInstance = (ProcessInstance) ksession.createProcessInstance(processId, parameters);
        if ( this.outIdentifier != null ) {
            ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getResults().put(this.outIdentifier,
                                                                                                               processInstance.getId());
        }
        return processInstance;
View Full Code Here

Examples of org.kie.runtime.StatefulKnowledgeSession.createProcessInstance()

        if (data != null) {
            for (Object o: data) {
                ksession.insert(o);
            }
        }
        ProcessInstance processInstance = (ProcessInstance) ksession.createProcessInstance(processId, parameters);
        if ( this.outIdentifier != null ) {
            ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getResults().put(this.outIdentifier,
                                                                                                               processInstance.getId());
        }
        return processInstance;
View Full Code Here

Examples of org.nightlabs.jfire.trade.jbpm.ProcessDefinitionAssignment.createProcessInstance()

      recurringOffer = getPersistenceManager().makePersistent(recurringOffer);
      trader.validateOffer(recurringOffer);

      ProcessDefinitionAssignment processDefinitionAssignment = (ProcessDefinitionAssignment) getPersistenceManager().getObjectById(
          ProcessDefinitionAssignmentID.create(RecurringOffer.class, tradeSide));
      processDefinitionAssignment.createProcessInstance(null, user, recurringOffer);

      return recurringOffer;
    }
  }
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.