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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user