[jbpm-issues] [JBoss JIRA] Updated: (JBPM-2482) console should pass authenticated user to engine operations

Tom Baeyens (JIRA) jira-events at lists.jboss.org
Tue Jan 5 06:41:30 EST 2010


     [ https://jira.jboss.org/jira/browse/JBPM-2482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Baeyens updated JBPM-2482:
------------------------------

    Fix Version/s: jBPM 4.x
                       (was: jBPM 4.4)


> 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.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: 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