
Unit 7: Including "Check Notification of Absence" in the Workflow Definition
Use
The task with which an employee can check a notification of absence is ready to be included into your workflow definition as the next step.
Prerequisites
You have defined a workflow with a step (
Unit 4: Defining and Inserting Task "Create Notification of Absence") and created the task Check Notification of Absence (Unit 6: Creating Task "Notification of Absence").Procedure
Calling the Workflow Builder
The Workflow Builder is then launched in change mode with the workflow that was processed last.
Creating a container element in the workflow container
You need an additional container element in the workflow container to store the name of the user who will execute this step. This user name is to be used later in the notification text that is sent to the requester.
The dialog box for entering a container element is displayed.
Element:
Name:
ApproverDescription:
Approver of the absence requestThe Select predefined data type dialog box is displayed.
You return to the creation of a container element. The system has made the required entries for a container element that is to contain an agent.
You have now added a local container element to the workflow container, which is ready to take an agent name, based on its data type reference. However, you have not yet determined a value for this container element.
Creating an activity as a step in the workflow definition
By doing so, you add an activity to your workflow definition. The step definition is shown in the right-hand part of the screen. You are on the Control tab page.
Entering basic data for control
If you no longer know the full abbreviation, you can use different methods to search for it:
This displays the Search and Find: Tasks dialog box.
On the Obj. type and method tab page, enter the object type
Then double-click your task in the list. You should recognize your task from your initials in the abbreviation. Choose
.
A list is then displayed from which you can choose the required task or workflow by double-clicking.

Every activity, as a step in a workflow definition, refers to a task or a workflow.
At this point, the unique reference to this task or workflow is entered. The identification is made up of an abbreviation (T, TS, WF, or WS) followed by an 8-digit number.
If you choose a workflow (WS or WF) as a task, you include a
You go to a dialog box in which the system proposes a binding from the workflow container to the task container.
Here, the object reference to the notification of absence is transported from the workflow container (container element
AbsenceForm) to the task container (to the container element _WI_Object_ID).Add the binding definition
Now define another binding using which the
actual agent of the work item (the superior) is stored in a container element of the workflow container.The Binding for Step 'Check notification of absence (ini)' dialog box is then displayed. If the first column is entitled Element, choose
to display the element description.
The system has created the following binding definition from the workflow container to the task container:
Notif. of absence
&AbsenceForm&
This binding ensures that the correct notification of absence is checked in the task.
All of the container elements in the task container are now displayed on the left-hand side. You can define a binding from these container elements to the workflow container.
The Expression dialog box is displayed. All container elements that have a data type that is compatible with the target element have a green background.
In addition to the bindings already existing, the following binding is now defined:
Agent
&Approver&
Determining outcomes
The method APPROVE of the object type FORMABSENC, to which you refer in the standard task definition, is defined with a
result. The three possible values of this result are offered on the tab page Outcomes as outcomes of this step:The
indicates that these outcomes have already been transferred to the workflow definition. The outcome New is not really appropriate at this point. At this stage of processing, the notification of absence cannot be "new" any more. It should therefore not be incorporated in the definition.
The symbol changes to
.

The outcome Processing obsolete is processed if the relevant work item is set to obsolete using a process control step type. These functions are not used in this tutorial.
The outcome Form not available results from the
Two branches are now inserted in your workflow definition for the two marked outcomes Notification of Absence Approved and Notification of Absence Rejected.
Inputs for the agent
If you are working through this tutorial alone, do not specify anything for responsibility at this point. If it is processed when the workflow is executed, therefore, this step will be "offered" for processing to all employees declared as
possible agents of the task Check notification of absence. This means all users whose positions are described with the job head of department.In your organizational plan, there is only one user who is a possible agent and that is you yourself.
Concluding the step definition
Choose
.
The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
Result
You can subject your workflow definition to a second test.