]
Huisheng Xu updated JBPM-2867:
------------------------------
Attachment: JBPM-2867.patch
attach patch for fix this.
the 'outcome-value' feature of sub-process does not work
--------------------------------------------------------
Key: JBPM-2867
URL:
https://jira.jboss.org/browse/JBPM-2867
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.3
Environment: Eclipse Platform Version: 3.5.1
jBPM 4 Graphical Editor and Tools 1.1.0.v200908252230-31-8s733L3J7D7793
jBPM4.3
Reporter: Yao Yao
Priority: Minor
Attachments: JBPM-2867.patch
Original Estimate: 2 days
Remaining Estimate: 2 days
Hi, guys.
I'm doing some translating work of 《jBPM User Guide》, and I mentioned that in Table
6.21, Section 6.2.7, there are some descriptions about the 'outcome-value'.
Table 6.21. Extra transition elements in case of outcome variable mappings:
=======================================================
Element: outcome-value
Multiplicity: 0..1
Description: If the outcome matches the value, this transition is taken after the
sub-process ended. The value is specified with one child element.
=======================================================
But there's no example provided indeed.
Section 6.2.7.2 of 《jBPM User Guide》 shows an example about the outcome variable:
===============================================================
<sub-process name="review" sub-process-key="SubProcessReview"
outcome="#{result}">
<transition name="ok" to="next step" />
<transition name="nok" to="update" />
<transition name="reject" to="close" />
</sub-process>
===============================================================
I tried to midify it to:
==============
<sub-process name="review" outcome="#{result}"
sub-process-key="SubProcessReview">
<transition name="ok" to="next step">
<outcome-value>
<int value="3"/>
</outcome-value>
</transition>
<transition name="nok" to="update"/>
<transition name="reject" to="close"/>
</sub-process>
==============
But I got org.hibernate.exception.ConstraintViolationException and java.sql.SQLException
after:
======================================================================
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("result", 3);
taskService.setVariables(task.getId(), variables);
taskService.completeTask(task.getId());
======================================================================
I don't know whether it's a bug or just I do it a wrong way.
Please tell me the usage of the 'outcome-value' of sub-process. Examples
better.
Thanks. Regards from China~
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: