Modeling Workflows

To achieve the goal of a business process, you can model workflows. You can use forms to model the user interfaces for the My Collaborations and My Inbox apps used in the workflow. You can set up the workflow for use in a collaboration. Your business users can then process the tasks contained in the workflow for the collaboration.

Prerequisites

Context

If you enter workflowDueDate as the property in the Configure Workflow Properties app. Your business users will see the due date for the workflow in the Due Date column on the Work Items tab. For more information, see Work Items.

Procedure

  1. To model a workflow, you must first create a workflow module. See Create a Workflow Module.

  2. Next, you need to define the workflow. See Define Workflows.

    Consider the following points when defining a workflow:

    • When configuring a user task in the workflow, enter these values in the component information:

      Property

      Value

      HTML5 App Name

      comsapepdcollaboration.epdcollaborationTask

      SAPUI5 Component

      epd.collaboration.Task

    • To send emails to one or more recipients, configure mail tasks. See Configure Mail Tasks.

    • In the workflow editor, in the Workflow Properties panel, ensure that you have the following values configured:

      Important: Without this configuration, the workflow feature does not work in collaborations.

      Name

      Value

      Note

      Subject

      ${context.subject}

      This value maps a workflow definition to a specific instance of workflow that's triggered in a collaboration.

      Business Key

      ${context.businessKey}

      This value maps an instance of a workflow to a collaboration.

  3. For information about how to define workflow properties in workflow tasks, see Expressions.

  4. Next, build the workflow module. See Build and Deploy the Workflow Module.

  5. For information about how to use decisions in the workflows, see Creating and Reading Workflow Context Structures. Use following code in the script task:

    The <usertask> is the ID of the task that you want to apply to a decision button.

  6. To control the flow of the implementation after a decision, see Gateways.

Configuring Workflow Definitions

If you are using the SAP Business Application Studio to configure workflow definitions, you must configure a workflow definition so that email notifications are sent to the participants in a collaboration when the following events occur:

Type

Purpose

Name

Description

Add adhoc work items

To add users to the work items

SAP_EPD_ADHOC_WI_DEF

Enabling collaboration participants to add ad hoc work items to collaborations.

Notification Mails

To add registered users to the collaborations as participants

EmailInviteWorkflow

Enable this option to add registered users as participants to a collaboration. You have the option of sending notification mails to them.

To get e-mail notifications for collaboration status changes and when tagging participants.

Event Notification

Enable this option for participants to receive e-mail notification for collaboration status changes.

To make changes to the files and folders in a collaboration

EPD_DOCUMENT_MANAGEMENT_NOTIFICATION

Enable this option to perform actions on files or folders (documents) in a collaboration, such as creating or deleting a folder, uploading or deleting a file, or downloading a file or folder. The system instantly sends an email notification to the subscribed user.

To add a daily notification job for document changes

EPDC_DOCUMENT_CHANGES_CONSOLIDATED_NOTIFICATION

This option enables collaboration participants to add job scheduler in collaborations.

To request for approval of a redline

EPDC_PPX_APPROVE_REDLINING

Enable collaboration participants to send a request to approve a redline from the Product Package Exchange app.

To receive email notifications with a One-Time Passcode (OTP) for digital document approval

EPD_NOTIFICATION_ONE_TIME_PASSWORD_DOCUMENT_APPROVAL

Enable users to receive e-mail notification with a One-Time Passcode (OTP) for digital document approval.

Digital Document Approval

To request for digital approval of documents

DIGITAL_DOC_APPROVAL

Enable users to create requests for digital approval of attached documents for workflow tasks on the Work Items tab of collaborations.