-
1. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 Apr 29, 2016 12:28 PM (in response to abhisheksit2004)Hello Folks,
Any suggestions.
I have tried all ways but DO in Process-A is not getting passed in DO for Process-B.
This is really annoyed that this simple I/O, O/P dataobject mapping from Reusable subprocess is not working.
Regards,
Abhishek
-
2. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhijithumbe Apr 30, 2016 11:55 PM (in response to abhisheksit2004)Can you attach sample process definition to check Data mapping ? Ideally it should work, have you tried with pre-defined(String,int..etc) data types?
-
3. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 May 1, 2016 1:22 AM (in response to abhijithumbe)I have checked with primitive data types and it is working.
But it doesn't seem to be working with data objects.
I am attaching the project for reference.
Please suggest.
-
bewell-rep.zip 29.5 KB
-
-
4. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhijithumbe May 1, 2016 4:21 AM (in response to abhisheksit2004)You are performing wrong "Assignment" in reusable process node, because of this you observe null value in child process. Take a look at attached project.
-
project1.zip 20.1 KB
-
-
5. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 May 1, 2016 5:25 AM (in response to abhijithumbe)Thanks for response.
I updated the mapping and assigned to DO using script task but still I am facing issues where NULL values are coming ! !.
Please check the attached project and suggest.
-
bewell-rep.zip 30.0 KB
-
-
6. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 May 1, 2016 6:43 AM (in response to abhisheksit2004)Hi,
I am not able to understand that why human task UI is not displaying the data object values when I have a script task just before that and able to print the data object.
testBO=(bewell_org.bewell_rep.testDO)kcontext.getVariable("sin");
System.out.println(testBO.getCustomerId());
Please suggest.
/Abhishek
-
7. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 May 1, 2016 8:15 AM (in response to abhisheksit2004)Hello,
I am able to get data object in Subprocess from Parent process along with all values.
Now, there is another problem.
I am updating the data object in subprocess and requires to update data object in Parent process too.
I followed the same steps as below butting getting NULL in 'Final' script task of Parent Process.
testBO=(bewell_org.bewell_rep.testDO)kcontext.getVariable("sout");
System.out.println(testBO.getCustomerId());
sout: Output variable from Subprocess properties. !
Attaching the project for reference.
Please suggest.
-
bewell-rep.zip 30.4 KB
-
-
8. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhisheksit2004 May 2, 2016 1:18 AM (in response to abhisheksit2004)Hi,
Please suggest as I am not getting updated data object in Parent process.
Regards,
Abhishek
-
9. Re: Complex Data Object with SubProcess Invocation in jBPM 6.4.0
abhijithumbe May 2, 2016 1:55 AM (in response to abhisheksit2004)Hi,
I never tries using sin/sout in variable mapping, in place of sin/sout can you try using variable names(testBO) ?