-
Task
-
Resolution: Unresolved
-
Major
-
None
following pieces of console code should be revisisted so that the authenticated user is passed to the engine operations:
public ProcessInstanceRef newInstance(String definitionId, Map<String, Object> processVars)
{
Environment env = ((EnvironmentFactory)processEngine).openEnvironment();
try
{ ExecutionService execService = this.processEngine.getExecutionService(); Execution exec = execService.startProcessInstanceById(definitionId); execService.setVariables(exec.getId(), processVars); return ModelAdaptor.adoptExecution((ExecutionImpl)exec); }finally
{ env.close(); }}
First, the API needs to expose a way on how to set the authenticated user programmatically.
- is blocked by
-
JBPM-2417 allow for programmatic way to specify authentication through service api
- Open