[jboss-user] [jBPM] - Re: Boolean Process Variables are not mapped in Users Tasks?

Christian Witschel do-not-reply at jboss.com
Mon Sep 3 17:10:42 EDT 2012


Christian Witschel [https://community.jboss.org/people/cwitschel] created the discussion

"Re: Boolean Process Variables are not mapped in Users Tasks?"

To view the discussion, visit: https://community.jboss.org/message/757669#757669

--------------------------------------------------------------
sure, i can do that. can you give me some hints...

should i use junit or some other unit test framework?
how do i unit test human tasks in java?

BTW: I found that its not just booleans, but i dont get any result from human task forms, except the inital form at process start. Or is this maybe only contained in the content variable and i need to extract this and map it programmatically?
To my understanding from the documentation it should be that all variables I include in the Input and Output and Assignments sections of a task correspondingly also get to be known in the user form and after completing the form back into the process in the way i defined in the assignment.
However this is not happening. I read on this forum, that in order to get all the ${variableXYZ} to be replaced, i need to place variableXYZ into the content variable as a java.util.Map.
Once I did this using an OnEntry action, the forms were presented to the user just fine. Do I need an AfterEntry action also to read and map the results from the form completed by a user?

If I read the documentation for the jBpm console it describes the all process variables are available to the form and can be accessed with ${variable_name} notation. So actly the whole build up a java.util.Map and asign it to content should be not necessary.
Maybe its a bug in jbpm-console?

Cheers
Christian Witschel
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/757669#757669]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120903/b58a8276/attachment.html 


More information about the jboss-user mailing list