BAEL-379 A Guide to jBPM with Java (#6619)

* BAEL-379 A Guide to jBPM with Java

* BAEL-379

* BAEL-379 A Guide to jBPM with Java

* BAEL-379 A Guide to jBPM with Java

* BAEL-379 A Guide to jBPM with Java

* BAEL-379 A Guide to jBPM with Java
This commit is contained in:
Saurabh Kedia
2019-04-02 10:37:26 +05:30
committed by maibin
parent 6003634ad5
commit 8a9cfe80e9
8 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package com.baeldung.jbpm;
import org.kie.api.runtime.manager.Context;
import org.kie.internal.runtime.manager.context.EmptyContext;
import com.baeldung.jbpm.engine.WorkflowEngine;
import com.baeldung.jbpm.engine.WorkflowEngineImpl;
public class WorkflowProcessMain {
public static void main(String[] args) {
WorkflowEngine workflowEngine = new WorkflowEngineImpl();
String processId = "com.baeldung.bpmn.helloworld";
String kbaseId = "kbase";
String persistenceUnit = "org.jbpm.persistence.jpa";
Context<String> initialContext = EmptyContext.get();
workflowEngine.runjBPMEngineForProcess(processId, initialContext, kbaseId, persistenceUnit);
}
}