Product BZ for JBPM-4400: Problems using persistences with human tasks in OSGi
all commits are back ported to 6.0.x:
There are very important things to be aware of about these commits:
1. it changed the way human task variables are marshaled and unmashaled thus it requires special test that will create tasks with variables with previous version of the software and then same task is read and completed with new version that includes this changes
2. due to OSGi fixes another split package problem was found and resulted in change of package for two classes:
- BAMTaskSummaryImpl that is an entity so it requires change in persistence.xml
- BAMTaskEventListener that is responsible for logging all events consumed by BAM
while the first one might affect users who embedded jbpm with bam in their application then second one is most likely used only by business central
Maciej Swiderski <firstname.lastname@example.org> updated the status of jira JBPM-4400 to Resolved
Fix for this issue may potentially break existing deployments when users are using own persistence.xml files and they reference the BAMTaskSummaryImpl class. They need to change the package name.
I think we _have to_ clearly document this in the release notes.
We also need to fix the quickstarts, because they are using own persistence.xml file as well. See http://git.app.eng.bos.redhat.com/git/jboss-brms-quickstarts.git/tree/tasks-bpmsuite/src/test/resources/META-INF/persistence.xml?h=6.0.x#n68
I have create PR with the fix in quickstarts: https://github.com/jboss-developer/jboss-brms-quickstarts/pull/16
The issue cannot be verified in the FSW as it does not support human tasks. Words of David Ward: "(04:26:59 PM) errantepiphany: No, Human Tasks are not supported in the FSW product." Moreover, see "Persistence with jBPM is not working" in https://community.jboss.org/wiki/SwitchYardOnKaraf. I think, this should be verified by BPMS team.
FSW does not support Human Tasks for user applications but it is used internally, specifically as part of the DTGov project for the Governance business processes.
Verified in BPMS 6.0.3.ER1 using the Charles Moulliard's example
deployed on JBoss Fuse 6.1.0.redhat-379.
I built the example with BPMS 6.0.3.ER1 and deployed the example to Fuse. The example process worked correctly.
This issue was difficult to verify and special thanks goes to Charles Moulliard, Jiri Sedlacek and Robert Cernich. Thank you!