Details of Workflow Definition  

The following details are of interest in connection with the workflow definition for the workflow template WF_SAPFORMS1. Look at the definition in the system.

Binding for the workflow definition steps

Element _WI_Object_Id of task container /

Element AbsenceForm of the workflow container

This element of the task container contains the reference to the notification of absence that is to be processed.

In the first step of the workflow definition, in which the notification of absence is created in the R/3 System, the binding is defined from the _WI_Object_ID of the task container to the element AbsenceForm of the workflow container. The element AbsenceForm for the object reference was created in addition to the standard elements in the workflow container.

In the following step of the workflow definition, in which the notification of absence can be approved, a binding is defined from the element AbsenceForm of the workflow container to the element _WI_Object_Id of the task container.

Element AbsenceForm of task container /

Element AbsenceForm of the workflow container

In the steps of the workflow definition in which the descriptive long text is sent, a binding is defined from the element AbsenceForm of the workflow container to the element AbsenceForm of the task container. This binding ensures correct text substitution in the long text of the single-step task.

The element _WI_Object_Id of the task container must not be filled in this step.

Agent determination

Steps for the creator

If the creator of the notification of absence is to process a step, the element _WF_Initiator of the workflow container is entered as the agent. This element is in the workflow container as standard and was supplied from the form.

Steps for the superior

If the creator's superior is to process a step, they must be determined via role resolution. The role requires the name of the creator as "input". The role 00000168 ( Superior of...) is therefore entered as the agent, and a binding is defined from the element _WI_Initiator of the workflow container to the element Org_Object of the role container.

Address determination and sending the text

In the step in which the standard task AF_Txt_Send is called to send the mail to the creator of the notification of absence, the creator (element _WF_Initiator of the workflow container) is passed to the element AddressStrings in the task container. The element _WI_Object_Id of the container of this single-step task remains empty.