jBPM n Seam: to post a bug or not?
armahdi Mar 22, 2011 6:48 AMHello All!
I have a jBPM process working in seam, i made it to work after a lot of workarounds i think.
the process is simple, user starts a process and five BusinessProcess variable are formed and persisted in the jbpmvariableinstance table and the process continues to task A and so on.
now this process works fine no problems. then I make a new button where the s:button has a condition of rendered if the user.sommevariable equals a certain string lets say Admin or manager.
This button shows up in the menu when a user with manager in user.somevariable logs in. Pls Note: the user has only logged in and the button appears on the screen the user has not touched it yet. user instead goes to the process and starts the process like any other user , four out of five PVs are persisted with TOKEN, TOKENVARIABLEMAP, and PROCESSINSTANCE fields as null. and the version is 1 instead of 0. The fifth variable was accidentally made initially but never used in the process anywhere. But the process doesn't know that because none of the users have proceeded to the task A and beyond yet. they are still in the first task node where task A is. or lets say none of the actors have accepted or acted on task A yet. so there is no way to know if the fifth variable is never going to be used and outjected again as a PV for later tasks.
the syntax of the button is below:
<s:button id="CreateManRequest" view="/managers-appform.xhtml" value="#{application.id > 0 ? ' Edit Man Application' : 'Create Man Application'}" rendered="#{identity.loggedIn and !s:hasRole('admin') and (user.bType.name_En eq 'Manager' ? true : false ) }"/>
How is it possible that such an innocent looking s:button would interfere in my process and its variables. What is stranger is that the fifth variable that is never used in the process anywhere has all the fields all filled up rightly and
version_
is also '0' as it shud be.
some things in seam are so strange it actually feels that a developers Ghost is haunting it.
I would really appreciate if some one can point out if thety ahd any issues like that, Or shud i post a BUG
Thanks
Syed