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
- is duplicated by
-
JBPM-2471 Params submitted via a taskform tied to the start activity cant be referenced in expressions till a task halt has been added to the workflow
- Closed