Result, Export Parameters, and Workflow Definition (BOR) 
In addition to its export parameters, a method can return one result to its caller. Unlike with the export parameters, you define the possible values of the result as fixed values or in a check table when the method is defined.
If you define an activity with reference to a single-step task that refers to a method with a result, the workflow system behaves as follows:
In the workflow definition, the possible result values are offered for selection as outcomes of this activity. You can then model the various subsequent steps depending on the value of the result. You must select at least one outcome for modeling.
Note
If, during this step, the result assumes a value for which there is no modeling, the workflow assumes the error status.
After execution of the method, the system puts the value of the result into the task container in the container element _WI_Result so that you can use it in subsequent steps of the workflow definition as well. You can transfer the result value from the task container to the workflow container via binding.