TaskService.completeTask fails when called with variables but no outcome
------------------------------------------------------------------------
Key: JBPM-2951
URL:
https://jira.jboss.org/browse/JBPM-2951
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 4.4
Reporter: Jon Kranes
Given a task 'task1' with a single named transition, if I call the variant of
completeTask that takes the taskID and a Map of variables, the result is an error:
"No unnamed transitions were found for the task 'task1'
According to the user guide (Section 5.7), if a task has one outgoing transition with a
name, then calling compeleteTask(id, null) is expected to result in an error. It appears
that calling completeTask(id, variables) is being treated as equivalent to calling
completeTask(id, null, variables) and thus causing an error. This behavior seems incorrect
-- completeTask(id, variables) should, aside from setting variables, follow the behavior
of completeTask(id), which according to the user guide will complete the task and take the
single outgoing transition regardless of whether it is named or not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira