-
1. Re: jBPM 6.0.1 mapping problem
swiderski.maciej Jun 26, 2014 1:54 PM (in response to kondzik)complex object as process variables are only available with Java Remote API that utilizes commands and the execute method. If you don't want to use Java Remote API then you might want to try to simulate what it does by producing valid xml for the command and then use regular REST URL. Though I would recommend to stick to Java Remote API for this.
As an alternative you might want to enhance your process to build up your object based on simple types via script task or some custom activities.
HTH
-
2. Re: jBPM 6.0.1 mapping problem
kondzik Jun 27, 2014 1:29 AM (in response to kondzik)yes, it's true. I confirm this information.
It really works.
I made map x,
then I created an object of the same model which i have in kie workbench data modeller.
After that I put on the map x object y named such that the variables declared in kie wokrbench.
At the end i started process with params ; process name or id(i dont rememeber) and map x.
Now i can work with objects.
A big thanks to Maciej Swiderski
-
3. Re: jBPM 6.0.1 mapping problem
mysteryblinky Jul 29, 2014 3:30 PM (in response to kondzik)Can you please be a bit more clear about what you did to make this work?
> then I created an object of the same model which i have in kie workbench data modeller.
By this i think you mean you instantiated an object based on the class of the model you made in the workbench using the "Data Modeler" -- correct?
> After that I put on the map x object y named such that the variables declared in kie wokrbench.
I don't understand what you mean by "named such that the variables declared in kie workbench". Let's say the Data Model you created in the workbench is called "Person", is "Person" what you used as the key in your map? If not, what did you use as the key?
No matter what i've tried, I still end up with "null" as the value of the process variable in my process instance.
Can you give a concrete example of how you solved this?
thanks