Unit 6: Creating Task "Check Notification of Absence"

Use

You define the task Check notification of absence. This task is incorporated into your workflow definition as the second step.

As this is not the first task you have defined, many steps will doubtless be familiar to you. (Refer to Unit 4: Defining and Inserting Task "Create Notification of Absence").

Prerequisites

The object type used (here: FORMABSENC (notification of absence)) and the required method (here: Approve) are already defined and implemented in the Business Object Repository.

Procedure

This time, you will not define the task directly from the Workflow Builder, but independently in task maintenance.

  1. Choose Start of the navigation pathTools Next navigation step Business Workflow Next navigation step Development Next navigation step Definition Tools Next navigation step Tasks/Task Groups Next navigation step CreateEnd of the navigation path.

    The Task: Maintain screen is displayed.

  2. In the Task type field, choose the Standardaufgabe entry.

  3. Choose .

    The Basic data tab in the Standard task: Create screen is then displayed.

Entering the basic data

  1. Enter an abbreviation (of your choice) and a name (of your choice) for the task to be created.

    • Abbreviation: < ini _check>

    • Name: < Check notification of absence ( ini )>

  2. Object type and method

    Enter an object type and a method:

    • Object Category: BOR object type

    • Object Type: FORMABSENC

    • Method: APPROVE

    You can also use the F4 input help to select the method.

  3. Work item text

    In the Work item text field, enter the text Check notification of absence from.

  4. Choose . Save your task as a local object.

  5. You can include variables in your work item text to be filled with values from the task container at runtime.

    The name of the creator of the notification of absence is to be included into the work item text. As soon as the work item appears in the superior's Business Workplace, the name of the creator appears in the work item information text.

    Position the cursor in the work item text after the word of.

  6. Choose .

    The Choose an expression dialog box is then displayed.

  7. Choose the expression Notif. of absence by double-clicking the Container node. Start of the navigation pathIssuer object ref. Next navigation step NameEnd of the navigation path.

    The variable &_WI_Object_ID.Creator.Name& has been added to the work item text automatically. The variable name displayed here is the technical name of the expression.

You can integrate all of the elements in the task container in your work item text. This enables you to include information into the work item text, which is not available until runtime.

Entering the description text

  1. Go to the Description tab.

    Choose Task description in the Text type field.

  2. The current task description is then displayed. This text is intended to inform future recipients of a work item in which this task is referenced and help them in their work.

    The text will often be similar to the work item text or may supplement it.

  3. Choose .

  4. Enter the following text:

    Check notification of absence no. &_WI_OBJECT_ID.NUMBER& from &_WI_OBJECT_ID.CREATEDATE& o f employee &_WI_OBJECT_ID.CREATOR.NAME&..

    Decide whether to approve the request.

    If you want to insert an expression from the task container as a text variable, you have to choose Start of the navigation pathInclude Next navigation step ExpressionEnd of the navigation path. Then choose the relevant expression in the Choose an expression dialog box by double-clicking the Container node. You cannot insert an expression manually in the text.

  5. Choose .

  6. Choose .

Determining possible agents

  1. Choose Start of the navigation pathAdditional Data  Next navigation step  Processor Assignment  Next navigation step  MaintainEnd of the navigation path.

    This takes you to the Standard task: Maintain Agent Assignment screen.

  2. Position the cursor on the name of your task.

  3. Choose .

    You go to the Choose agent type dialog box.

  4. Double-click Job.

    The Choose Job dialog box is displayed.

  5. Enter either part of or the full abbreviation of the job that you created for the head of department in Unit 1: Organizational Plan and select the required job.

    You return to the Standard Task: Maintain Agent Assignment screen..

  6. Choose .

    You have linked the task to the job of a head of department. In the organizational plan, you use this job to describe a position. The holder of the position is also displayed.

  7. Choose .

  8. Choose .

Result

The task for checking the notification of absence is defined in full. You can now exit the screen for defining a task.

In the next unit, you will incorporate this task into your workflow.