outcomes
DESCRIPTION
sap wf outcomesTRANSCRIPT
Result, Export Parameters and Workflow Definition 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.
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.
Step outcomes https://help.sap.com/saphelp_erp2004/helpdata/en/a6/9baca25f2c11d194a40000e82dec10/content.htm Outcomes Tab Page
UseThe specifications you make on this tab page determine the outcomes of the step for which you
want to model a reaction. If reactions to missed deadlines are modeled, the outcomes defined for
the relevant missed deadline are only displayed here.
FeaturesThe system determines the outcomes that are displayed on this tab page from the following
specifications:· Possible values of the result of the method used in the task.
· Terminating events of the task.
· Exceptions for the method used in the task.
· Step definition.
You decide which outcomes you want to take into account in the workflow when modeling.The
only outcomes that have to be taken into account whenever they are displayed on this tab page
are the outcomes for missed deadlines
Step executed and Processing rejected.
If you have not included an outcome that is required during execution into the definition, the associated
workflow work item is forced into status error.
The following table shows all possible outcomes:
The outcome is … The outcome exists if ... Notes and comments
Terminating event
of task
The task was defined with
terminating events.
If the underlying method is an asynchronous
method, you must select at least one event as
an outcome.
Possible value of
result of object
method
The synchronous object method is
defined with a result, for which
fixed values or a check table are
maintained.
If you deactivate all values of the results, the
system activates the Step executed outcome.
Object method
exception
The object method is defined with
exceptions.
Exceptions in the Workflow Definition
Step executed · The activity refers to a synchronous
object method without result.
· The activity refers to a synchronous
object method with result, but no result
is selected.
If this outcome is displayed, it is always active.
Processing rejected The indicator Processing can be
rejected is set
If processing of the relevant work item is
rejected at runtime (using Reject execution in
the Business Workplace), the steps defined
after this outcome are executed.
Processing
obsolete
The work item can be set to
obsolete using a step of the type
process control.
The steps defined after this outcome are
executed.
This outcome should only be activated if a step
is contained in the modeled reaction to a
missed deadline that sets the work item of this
step as obsolete.
Requested end
Latest end
Latest start
The relevant deadline monitoring
is activated and a modeled
reaction required.
Within these branches, you can model a
process control step that sets the work item of
this step to obsolete.
You cannot deactivate these outcomes.
Condition for the
'complete work
item' is true.
A condition for Complete work
item is entered on the Conditions
tab page
If this outcome is displayed, it is always active.
At runtime, the workflow system creates an instance linkage only for the terminating events that you
activate here and therefore include in the workflow definition.
No other events terminate the activity, even if they are entered as terminating events for the task.
If the indicator Not in the workflow log is set for an outcome, the entire branch that is connected to the
outcome is not displayed in the graphical workflow log. Further steps are only displayed if this branch is
joined with another branch again that is to be displayed.
ActivitiesYou activate the outcomes that you want to actually transfer into the workflow definition.Select in
the corresponding line.
Active outcomes are marked with and have a modeling branch in the workflow definition.
If you deactivate an active outcome, all steps already modeled in this branch are deleted.
For more information about an outcome, select it, and choose Detail in the context menu.