Bug 1123335

Summary: BPMN component is not updated after change of Kie project
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tomas Rohovsky <trohovsk>
Component: Rules / jBPM integrationAssignee: David Ward <dward>
Status: MODIFIED --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: ganandan, kejohnso, oskutka, rcernich, sbunciak, soa-p-jira
Target Milestone: DR4   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Tomas Rohovsky 2014-07-25 11:02:52 UTC
A BPMN implementation is not updated after change of a Kie project. It works fine for Drools. It is necessary to mention that a BPMN implementation is not updated once the component is invoked. So, it is possible to have two BPMN components based on the same implementation and each of them having different behaviour - the first was invoked before update of Kie project, the second was invoked after update of Kie project. A reproducer based on the switchyard-bpm-service quickstart is attached in JIRA.

How to reproduce:

    1. install the Kie project to maven repo: mvn install
    2. bin/standalone.sh
    3. deploy the modified switchyard-bpm-service: mvn install -Pdeploy -DskipTests
    4. invoke the first BPMN component: mvn exec:java
        * you will see this message in the server log: ********** Inventory user: trohovsk / incoming messageId: ID-merkur-37675-1406282701955-0-19 **********
    5. modify and install the Kie project
        * change println message in Inventory's On Entry Script
        * mvn install
    6. invoke the first BPMN component again: mvn exec:java
        * you should see the modified message, however you will see the original message
    7. invoke the second BPMN component: mvn exec:java -Dexec.args="2"
        * you will see the modified message: ********** CHANGED Inventory user: trohovsk / incoming messageId: ID-merkur-37675-1406282701955-0-10 **********

Comment 1 JBoss JIRA Server 2014-12-03 23:10:59 UTC
Rob Cernich <rcernich@redhat.com> updated the status of jira SWITCHYARD-2228 to Resolved