[
https://jira.jboss.org/jira/browse/JBPM-2319?page=com.atlassian.jira.plug...
]
Joram Barrez resolved JBPM-2319.
--------------------------------
Resolution: Done
The result of the test case is logical: the completion on the task is done by calling
taskService.completeTask(task.getDbid(), "Rejected by risk");
but this should have been according (the name of the transition must be used instead of
the 'to' attribute).
taskService.completeTask(task.getDbid(), "Reject (risk)");
If a signal is done on a TaskActivity, with an unknown outcome, the process instance is
suspended (see TaskActivity.java):
// if a user specified outcome was provided and it doesn't
// match with an outgoing transition name, then the process
// instance is suspended. parked for admin intervention.
((ExecutionImpl)execution.getProcessInstance()).suspend();
Added a log message to this situation for clarification:
[TaskActivity] No outcome named 'Rejected by risk' was found.The process instance
is now suspended.
Note: The use case where a task is completed by an unexisting outcome is already covered
in the TaskOutcomesTest class.
Finished executions are not changed to "ended" (they stay
in the "active" state)
--------------------------------------------------------------------------------
Key: JBPM-2319
URL:
https://jira.jboss.org/jira/browse/JBPM-2319
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.0.0.Beta2, jBPM 4.0.CR1
Reporter: Alexis Seigneurin
Assignee: Joram Barrez
Fix For: jBPM 4.0
Attachments: Bug.java, test1.jpdl.xml
With some process definitions, an ended process is not changed to the correct state. It
stays "active" and the end time and end activity remain null.
I will attach a sample process definition and sample code to reproduce the issue.
--
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