]
Maciej Swiderski reassigned JBPM-2482:
--------------------------------------
Assignee: Maciej Swiderski
console should pass authenticated user to engine operations
-----------------------------------------------------------
Key: JBPM-2482
URL:
https://jira.jboss.org/browse/JBPM-2482
Project: jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Console
Reporter: Tom Baeyens
Assignee: Maciej Swiderski
Fix For: jBPM 4.x
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: