creating new process instance from console fails to set process variables properly
----------------------------------------------------------------------------------
Key: JBPM-2476
URL:
https://jira.jboss.org/jira/browse/JBPM-2476
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Console
Affects Versions: jBPM 4.0
Environment: Jboss-5.1.0.GA on Windows XP
Reporter: Marko Friedemann
When creating a new ProcessInstance from the jbpm-console, the integration code fails to
set process variables (eg. from form template for start activity) properly.
The offending code is:
,-- ProcessManagementImpl.java, 265, 266 --
|
| Execution exec = execService.startProcessInstanceById (definitionId);
| execService.setVariables(exec.getId(), processVars);
|
`--------------------
Setting the variables after startProcessInstanceById() is pointless, as this starts and
runs the instance.
Easily fixed by supplying the variables to startProcessInstanceById():
,-- fix --
|
| Execution exec = execService.startProcessInstanceById (definitionId, processVars);
|
`-------------
regards,
Marko
--
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