-
1. Re: Passing data to a service task
jsvitak Nov 14, 2012 3:53 AM (in response to teots)1 of 1 people found this helpfulHi,
you have to declare variables at process level and define parameter/result mapping in service task. You can map results of the first service task into process variables and then pass the process variables as an output to the second service task. This can be done in web designer or in Eclipse plugin.
-
2. Re: Passing data to a service task
teots Nov 14, 2012 3:58 AM (in response to jsvitak)Ok I found where I can set the mapping, but how do I declare variables at process level in the first place?!
-
3. Re: Passing data to a service task
jsvitak Nov 14, 2012 3:59 AM (in response to teots)1 of 1 people found this helpfulClicking somewhere on canvas enables you to edit process properties.
-
4. Re: Passing data to a service task
teots Nov 14, 2012 4:19 AM (in response to jsvitak)Thanks a lot!
-
5. Re: Passing data to a service task
lauradp Nov 23, 2012 10:11 AM (in response to teots)I was able to set Process variables (see attached picture), and set them in the process main:
params.put("Command", workflowName);
params.put("Parameters", null);
// start a new process instance
ksession.startProcess("process", params);
System.out.println("Process started ...");
but variables are not availabe in taskHandler!
-
6. Re: Passing data to a service task
salaboy21 Nov 23, 2012 10:34 AM (in response to lauradp)Did you map the variables as input variables inside the UserTask node??
Cheers
-
7. Re: Passing data to a service task
lauradp Nov 23, 2012 10:35 AM (in response to salaboy21)Thanks for your answare!
Here is the RunAction Mapping:
[
"name" : "RunAction",
"parameters" : [
"Command" : new StringDataType(),
"Parameters" : new ObjectDataType(),
],
"results" : [
"ExitValue" : new IntegerDataType(),
],
"displayName" : "RunAction",
]