How to utilize Service Task's Output parameters

I know that if to use a Connector (think it was http-connector, when I last tried that), I can specify an “Output parameter” in the modeler, and it will store the result of the execution. I think it was ${result} or something.

But is there a way to make a Service Task, specifically “Java delegate”, which would utilize the Output parameter? Like “I want to store the result of a service task in a variable, which I defined from a model”.

Hi @Draakzward,

you can set a local variable in the Java delegate and use an output mapping to set a new process variable with the value of the local variable. Now the modeler controls the name.

Hope this helps, Ingo

2 Likes

Thank you,
Precisely what I was looking for.