Hello,
I'm trying to call a process from another process with ModelID like here:
https://developer.enaio.org/redline/display/DD/BPM Server-Side Scripting#BPMServer-SideScripting-StartaProcessWithinanEventScript
=====
// You can start a process and put some process parameter to it. The following example uses the parameters 'firstname' and 'lastname'.
// Additionally you can put an object to the process. The process engine will put it into the process file.
// The context variable will be the body of the request later.
var context = {
data: {
firstname: 'Ada',
lastname: 'Lovelace'
},
contents: {
0: {
id: '7F822BD2065744CBA85736FD5A10179B',
type: 'Image'
}}
};
// Define a post request, set the endpoint and put a query parameter and the defined body object. Then execute.
var res = $.http.post().path('/service/bpm/process')
.query('modelid', '310FCE1DC0A04247A793FBDEB5DA32F6')
.body(context)
.execute();
=====
That works, but if I log the $ object, I dont see the context that I sent. Can you tell me please, where I can find it?
Thank you!
Best regards,
Georgii