cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass args to Service task

alef
Champ in-the-making
Champ in-the-making
Hi all, I need to pass a custom object as arguments to a Service Task defined with type "Expression".
Assuming the expression is
#{myTask.doStuff(arg)}
, how can I do that?

Below the bean interface:
public class MyTask{

    public Integer doStuff(MyClass arg) {
    …
    }
}


Thanks in advance.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
well, exactly as you say, with ${myTask.doStuff(arg)}. If this bean is of course known to the engine (for example its a Spring bean in a spring environment)