-
1. Re: Boolean Process Variables are not mapped in Users Tasks?
swiderski.maciej Sep 3, 2012 1:43 AM (in response to cwitschel)Would be great if you could provide a test case (preferably maven project) for this. What version of jBPM do you run?
Cheers
-
2. Re: Boolean Process Variables are not mapped in Users Tasks?
cwitschel Sep 3, 2012 5:10 PM (in response to swiderski.maciej)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
-
3. Re: Boolean Process Variables are not mapped in Users Tasks?
cwitschel Sep 3, 2012 5:12 PM (in response to swiderski.maciej)I am using jBPM 5.3 with installer running Ubuntu 12.04.
Cheers
Christian Witschel
-
4. Re: Boolean Process Variables are not mapped in Users Tasks?
swiderski.maciej Sep 6, 2012 3:34 AM (in response to cwitschel)if you could provide maven project with junit test that would be just perfect
Cheers
-
5. Re: Boolean Process Variables are not mapped in Users Tasks?
jsvitak Sep 6, 2012 8:26 AM (in response to swiderski.maciej)Hello,
I have experienced the same issue when getting Boolean variable from the human task. It's reported as JBPM-3779 and Bugzilla 854965 with a test case.
Regards
Jiri Svitak
-
6. Re: Boolean Process Variables are not mapped in Users Tasks?
swiderski.maciej Sep 6, 2012 8:49 AM (in response to jsvitak)Perfect Jiri, will take a look at it.
Cheers
-
7. Re: Boolean Process Variables are not mapped in Users Tasks?
swiderski.maciej Sep 7, 2012 9:03 AM (in response to jsvitak)Alright, this has been fixed on master so if anyone is interested can be tested with master build.
Cheers