AnsweredAssumed Answered

Business Rule task not updating Java object

Question asked by mikepoole on Apr 19, 2012
Latest reply on Dec 10, 2014 by johnm
I have a business rule task that uses a drl file to update a Java object which was created in a Java Service Task prior to the rule task

I have some printlns in the functions that the drl file triggers so I am confident that the rule task is firing AND evaluating correctly.

The next step in the process is a user task. When I retrieve the values form the Java object to display on the form, they are the pre business task/drools update values

1. Create Article (my Java object (which implements Serializable)) - set size to 5 and assign Article to process variable "pvArticle"
2. Business Rule task runs and sets size to 50 (Tomcat shows the setSize() method being triggered and this.size being set to 50)
3. User task form has #{pvArticle.getSize()} as the expression - returns 5

What am I doing wrong?

Many thanks