Thanks for your reply.
Yes, that is the way how you do it at "runtime". But I was searching for a solution at design time:
Usually you have to edit the property "Result Mapping" in the eclipse plugin in order to use the result (that you have passed with the completeWorkItem method) in the process as a variable. I was thinking of a shortcut that can be done inside the custom dialog of the serviceTask.