Thanks for your reply. I am not quite sure the difference between 1. and 3.
The curl command (other application provided) is call to execute do some action on the other application itself.
I tried to execute that curl command separately and it works fine, so I wonder how I can embed into my workflow. So I would like to know how/where to let the workflow call the curl to trigger the other application to do some task itself.
In case, I'm not familiar with Java and there are some questions would like to ask you about. After I drag out the service task from eclipse, I saw "Java class", "expression", "delegate expression" in the list of Task Type under Properties/Main Config tab. And there is a class name, result variable, skip expression .....
I wonder to know how can I add your code into the service task step?