Configuring Approval Workflows

Objective

After completing this lesson, you will be able to set up time approval processes by creating workflow configurations and linking them to time types.

Workflows

If approval is required when the employee submits a time off request, a workflow can be created and assigned to the absence type.

The workflow can be created in Manage Organization, Pay and Job Structures. It can then be assigned to the relevant Time Type in the Workflow Configuration field. A single workflow can be assigned to multiple Time Types.

The Workflow Configuration for Time Off Requests is displayed.

In the image, a standard Absence Request workflow is created. It will route the approval request to the employee's manager. When the employee requests absence of the time type this workflow is assigned to, the workflow will be triggered.

Workflow Settings for Absences Recorded by Managers and Time Administrators

When Managers/Time Administrators record an absence on behalf of an employee, there is an option to assign a different workflow for approval. This allows the admin-triggered absence to follow a different approval route from employee-submitted requests. Such workflows can be assigned in the Admin Workflow Configuration of the time type configuration.

Custom Workflow Notification Emails

You can set up custom workflow notification emails for Time Off, Time Sheet, and Single Record Approvals using the Document Generation framework. This allows notifications to include additional tokens or details such as the employee's name, the time type recorded, and the start and end dates or times of an attendance request which can make the approval emails more dynamic and contextual.

An example Custom Workflow Notification Email for Time Sheets and its corresponding token mapping is displayed.

Create a Workflow

Steps

  1. First, this step is a preliminary step and only needs to be done once. You need to maintain the employeeTime object. Select Configure Object DefinitionsEmployee Time.

    An example of how to Create a Workflow: Maintain Employee Time is displayed.
    • Employee Time is the default label, but you can enter another if it suits your requirements better.

    • Configure the ToDo Category in the object header by selecting Time Off Requests.

    • Change the labels for employee times to meaningful texts. The text is used in, for example, notification e-mails. Ensure that you change

    Caution

    g the Pending Data option to Yes is not supported and will cause inconsistencies in your data. Inflight changes are, therefore, not supported.

  2. Now, you're ready to create the rule you need, ensuring that the workflow settings for the individual time types are used. To do this step, go to the Configure Business RulesMetadata FrameworkRules for MDF Based Objects.

    • If you are not using the cancellation workflow or the admin workflow, you can set up the rule as you want to meet your requirements.

    • If you want to use the cancellation workflow or the admin workflow, create the rule exactly as shown in the following figure.

      An example of how to Create a Workflow : Create rule – Use Workflow is displayed.
  3. With this step done, you can assign the rule to the employee time object. To do this step, go to Configure Object Definitions.

  4. Choose the EmployeeTime object definition, and then select Take ActionMake Correction.

  5. Go to the Rules section, enter your newly created rule under Save Rules, and then save it.

    An example of how to create a Workflow: Assign Rule is displayed.
  6. Now, you can create individual workflows per time type. For example, for time type Vacation, use Employee Manager as the approver role (in Manage Organization, Pay, and Job Structures).

    An example of how to create a workflow.
  7. Finally, you need to add the workflow configuration to the time type. To do this step, select Manage Time Off Structures.

  8. In the resulting screen, call up the time type for which you want to enable the workflow. Choose Take ActionsMake Correction.

  9. Enter the workflow configuration relevant to the user and the administrator.

    • Use Workflow Configuration for the user-triggered workflow.

    • Use Admin Workflow Configuration for the administrator triggered workflow.

Create a Workflow

Business Example

When an employee requests the absence type Paid Time Off, an approver workflow must be sent to the manager for approval. If an administrator enters the absence, an e-mail notification workflow that doesn't require approval must be sent to the manager.

Steps

  1. Create a rule to determine which workflow is triggered (user or administrator) by using the following information:

    • Rule Scenario: Rules for MDF Based Objects (under Metadata Framework section)
    • Rule Name: Leave Workflow Trigger
    • Rule ID: Leave_Workflow_Trigger
    • Base Object: Employee Time
    • Purpose: Workflow
    1. Select Configure Business RulesCreate New Rule. Enter the rule information given in the following figure.

      The Configure Business Rules page is displayed.
  2. Create the rule details as given in the following code block:

    Code Snippet
    1234
    If: is equal to Then: Set to be equal to Else: Set to be equal to
    The rule checks if the requester is the user and triggers the workflow stored in the Workflow Configuration field of the time type, else, if the requester is an administrator, it triggers the workflow stored in the Admin Workflow Configuration field.

    1. Enter the details of the rule by using the information given in the following figure:

      The new rule settings page is displayed.
  3. Assign the rule to the Employee Time object as a Save rule.

    1. Navigate to Configure Object DefinitionsObject Definition: Employee Time.

    2. Choose Take ActionMake Correction.

    3. Locate the Save Rules section.

    4. Remove any existing Save Rules.

    5. Enter the rule under saveRules, so that the workflow can be triggered when the entry is saved.

      The Rules page is displayed.
  4. Create a user-triggered workflow Paid Time Off Approver (APPROVPTO) that requires a manager approval.

    1. Navigate to Manage Organization, Pay and Job structuresCreate NewWorkflow Configuration.

    2. Enter APPROVPTO as the Workflow ID and Paid Time Off Approval as the Name.

    3. Make selections as shown under Step 1 in the following figure – denote the Approver Type as a Role and the Approver Role as the Manager.

      The different steps are displayed in a workflow.
  5. Create an administrator-triggered workflow that sends an e-mail notification to the employee’s manager when the request is made.

    1. Select Manage Organization, Pay and Job structuresCreate NewWorkflow Configuration.

    2. Enter in PTOADMIN as the Workflow ID and Paid Time Off Notification as the Name.

    3. Make selections as shown under CC Role in the following figure – denote the CC Role Type as Role and the CC Role as the Manager.

      The Admin workflow is displayed.
  6. Assign the workflows to the time type PTO Leave (PTO).

    1. Select Manage Time Off StructuresTime TypePTO Leave (PTO).

    2. Select Take ActionMake Correction.

    3. Enter the user-triggered workflow APPROVPTO in the field Workflow Configuration.

    4. Enter the administrator-triggered workflow PTOADMIN in field Admin Workflow Configuration.

      The following figure shows the entries to the time type.

      The Time Type: Paid Time Off is displayed.

Post Save Rules

SAP SuccessFactors Employee Central supports e-mail notifications for certain activities in Time Off, so that those employees who need to know about those activities receive an appropriate e-mail.

Here are some of the use cases supported:

  • Reminder that an employee will return from leave in a given number of days. This reminder is relevant for long periods of leave, such as two years parental leave, to ensure that the manager has done everything necessary in the system. By doing so, the manager ensures that the system is ready for the employee's return.

  • Reminder that a certain absence will be longer than a given number of days, so that additional action can be taken. For example, if an employee is on sick leave for more than 15 days, HR might need to act.

  • Reminder if the number of days taken for a certain time type is above a defined maximum. For example, if an employee takes more than 20 days of sick leave, a notification needs to be generated.

These alerts and notifications are based on post save rules.

The Post Save Rules – E-mail Notification Templates is displayed.

Time Off uses the standard templates to send notifications. To check the templates, go to the E-Mail Notification Templates Settings.

Select the checkboxes to activate the e-mail notification templates:

  • Time Off Work Schedule Change Notification
  • Time Off Time Account Payout: Create Notification with Payout Rate Details
  • Time Off Time Account Payout: Edit Notification with Payout Rate Details
  • Time Off Time Account Payout: Delete Notification with Payout Rate Details
  • Time Off Time Account Payout: Create Notification
  • Time Off Time Account Payout: Edit Notification
  • Time Off Time Account Payout: Delete Notification

Summary

  • Workflows are created in Manage Organization, Pay and Job Structures and then linked to individual time types. One workflow can be assigned to multiple time types.
  • Two separate workflow fields exist on the time type: Workflow Configuration for employee-triggered requests and Admin Workflow Configuration for absences entered by managers or time administrators, allowing different approval routes for each.
  • Post save rules can be used to trigger email notifications for time-related events, such as alerting a manager when an employee has been on sick leave for more than a defined number of days.