Search in sources :

Example 6 with StartProcessCommand

use of org.drools.core.command.runtime.process.StartProcessCommand in project drools by kiegroup.

the class CommandBasedStatefulKnowledgeSession method startProcess.

public ProcessInstance startProcess(String processId, Map<String, Object> parameters) {
    StartProcessCommand command = new StartProcessCommand();
    command.setProcessId(processId);
    command.setParameters(parameters);
    return runner.execute(command);
}
Also used : StartProcessCommand(org.drools.core.command.runtime.process.StartProcessCommand)

Aggregations

StartProcessCommand (org.drools.core.command.runtime.process.StartProcessCommand)6 Test (org.junit.Test)3