Show TOC

 3.2 Defining the Approve Form Workflow Step in Detail

Use

In this lesson, you set up the Approve Form workflow step for processing in your workflow template.

Procedure

The details of the Approve Form workflow step appear when you double-click on the step in the Graphical Model .

To change the description of the step, choose the Control tab page and overwrite the description defined by the system with the following text:

Approve relocation form

On the Control tab page, set the agent determination. Enter the workflow initiator for the test phase. For more information, see the Defining the Edit Form Workflow Step in Detail for the HR Administrator lesson.

To define the data flow between the workflow step container and the workflow container, choose the Data Flow (Existing) pushbutton on the Control tab page.

The Change Data Flow for Step dialog box appears. The workflow template container elements and the workflow step container elements are displayed side by side.

The following image shows the Change Data Flow for Step dialog box for your workflow step:

Two of these container elements determine that the following pushbuttons are displayed on the relevant step in the form application:

Back to Author (container element BACK_BUTTON_VISIBLE)

If the user chooses the Back to Author pushbutton, the form to be edited is sent back to the user who started the process. The value of the PROCSTATE container element in the ‘Relocation’ Workflow <- Step ‘Approve Form’ data flowis set to status BACK when you use this function.

Save Draft (container element SAVE_DRAFT_BUTTON_VISIBLE)

In most cases this function is not useful in an approval step. This pushbutton is not visible in the standard system. Therefore, copy this setting for your process.

To edit the container elements in the Data Flow: 'Relocation' Workflow -> Step ‘Approve Form’ area, proceed as follows:

Set the Back to Author pushbutton to visible.

In the 'Relocation' Workflow column, enter the constantX (Pushbutton Is Visible and Active) for the &BACK_BUTTON_VISIBLE& element.

Leave the Save Draft pushbutton invisible.

Leave the entry &SAVE_DRAFT_BUTTON_VISIBLE& in the 'Relocation' Workflow column as created by the system.

Enter the form scenario step.

In the 'Relocation' Workflow column, overwrite the &FORM_SCENARIO_STAGE& element withFSS_3

For more information about entering constants, see the Defining the Edit Form Workflow Step in Detail for the HR Administrator lesson (see above).

The data flow for the element FORM must not be changed. The task container receives the relevant value from the workflow container. For more information, see the Determining the Form Scenario in the Workflow Container lesson.

Choose Exit Data Flow Editor .

Determine the programming exit for the workflow step.

On the Programming Exits tab page, enter the class CL_HRASR00_POBJ_WF_EXIT

Choose Transfer and Go to Graphic

Save and activate your workflow template.

Result

Your workflow template now looks like the following graphic:

The first process step in which the employee starts the process is outside of the workflow and is therefore not represented in this graphic. The Edit Relocation Form (Superior) step that the graphic shows as the first step is the second step of the process.

See also:

Standard Task TS17900101: Approve Form