[jbpm-issues] [JBoss JIRA] Assigned: (JBPM-2482) console should pass authenticated user to engine operations
Joram Barrez (JIRA)
jira-events at lists.jboss.org
Tue Jan 5 04:55:31 EST 2010
[ https://jira.jboss.org/jira/browse/JBPM-2482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joram Barrez reassigned JBPM-2482:
----------------------------------
Assignee: (was: Joram Barrez)
> console should pass authenticated user to engine operations
> -----------------------------------------------------------
>
> Key: JBPM-2482
> URL: https://jira.jboss.org/jira/browse/JBPM-2482
> Project: jBPM
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Console
> Reporter: Tom Baeyens
> Fix For: jBPM 4.4
>
>
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbpm-issues
mailing list