[Design of JBoss jBPM] - GetOutcomes returns additional transition
by shekharv
Is there a particular reason for why GetOutComes does this?
| Set<String> outcomes = new HashSet<String>();
| outcomes.add(Task.STATE_COMPLETED);
| .. logic to add other transitions specified in the activity.
|
When the TaskService.getOutComes(long taskDbId) is called with a task id it returns completed as an entry in the list of Transitions that will eventually be shown to the user.
But this particular transition is not even being modeled in the process_definition.
There are other places in the code, where in if a transition/outcome name is not specified then the transition is assumed to the 'completed' and special handling is done,
| if (Task.STATE_COMPLETED.equals(signalName)) {
| if (outgoingTransitions.size()==1) {
| transition = outgoingTransitions.get(0);
| } else {
| transition = activity.getDefaultOutgoingTransition();
| }
| }
|
The above snippet is from TaskActivity.
What is the reasoning behind adding this to the transitions that can be taken out of a Task?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241085#4241085
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241085
15 years, 4 months