Show TOC

Workflow SettingsLocate this document in the navigation structure

Configuring the Workflow process on SAP Gateway.

Use

There are two services for consuming Workflow. Choose the appropriate service for your system landscape.

Note If your system landscape is based on SAP NetWeaver 7.4 Support Package 04 or higher, you do not need to install the IW_BEP component in your system since the BEP functionality is included in the core SAP Gateway component SAP_GWFND, which is installed as standard.

Activating the Service

By default, the service is deactivated. To consume it, you must first activate it.

To activate the service in the SAP Gateway system:

  1. Set the system alias as described in Creating an SAP System Alias.

  2. If you are using the central hub deployment option, set the For Local App flag.

  3. Activate the /IWWRK/WFSERVICE service for backend deployment or the /IWWRK/WFHUBSERVICE service for embedded deployment using the system alias created above.

Workflow Configurations

You can perform the following configurations for the Workflow process:

  • Task Provider Customizing

  • Maintain Workflow Filter Settings

  • Maintain Task Names and Decision Options

  • Enable Task Filter

To reach these activities:

  1. From your SAP system, open transaction SPRO.

  2. Choose SAP Reference IMG.

  3. Navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Service Enablement Next navigation step Content Next navigation step Workflow Settings End of the navigation path.

Task Provider Customizing

This activity allows you to maintain Workflow task providers in the Task Provider Framework.

The Task Provider Framework consists of two components:

  • Push Framework

  • Generic Worklist

The Push Framework collects notifications from all customized active task providers and sends them to the SAP Gateway system.

The Generic Worklist collects the user items from all customized active task providers to create a unified inbox view.

Activating an Existing Provider

To activate an existing provider:

  1. In the Dialog Structure section, double-click Providers.

  2. From the Providers table, select the BWF checkbox to activate the /IWWRK/WFSERVICE subscription notification.

  3. Choose Save.

Adding a New Provider

To add a new provider, you must register an entry in the Providers section, add its details in the Provider Details section and define its adapter classes for the Task Provider Framework in the Adapter Classes section.

You can also maintain additional services for the provider.

  1. In the Dialog Structure section, double-click Providers.

  2. Choose New Entries.

  3. In the Providers section, enter the provider ID and select the Active checkbox.

  4. Choose Save.

  5. In the Dialog Structure section, select Provider Details.

  6. Choose New Entries.

  7. In the Provider Details table, enter the provider ID, the default internal service name, the version number, and the provider's description.

    Note

    If no specific service can be found for an item, the default service and version number is used instead.

  8. Choose Save.

Defining the Provider Adapter Classes

  1. In the Dialog Structure section, select Task Providers.

  2. In the Task Providers table, select the relevant provider.

  3. In the Dialog Structure section, double-click Adapter Classes.

  4. Choose New Entries.

  5. In the first line of the Adapter Classes table, under Adapter Type, select Generic Worklist from the drop-down list.

  6. In the Class/Interface field, enter the class you implemented for retrieving all the user items from the provider (inherited from /IWWRK/CL_GWL_ABS_DATA).

  7. In the second line of the Adapter Classes table, under Adapter Type, select Push Framework from the drop-down list.

  8. In the Class/Interface field, enter the class you implemented for retrieving all the notifications that need to be sent from the provider to the SAP Gateway system (inherited from /IWWRK/CL_PFW_ABSTR).

  9. Choose Save.

Defining the Provider Specific Services

  1. In the Dialog Structure section, select Task Providers.

  2. In the Task Providers section, select the relevant provider.

  3. In the Dialog Structure section, double-click Services.

  4. Choose New Entries.

  5. In the Services table, enter the internal service name, the version number, the main and secondary unique IDs (values used to identify the service), and the service description.

  6. Choose Save.

Maintain Task Names and Decision Options

This activity allows you to maintain Workflow tasks that need to be included in the task filter together with their names and decision keys.

Note

These customizations are relevant when the filter is active. When the filter is not active, all Workflow items are read and all notifications are sent.

Adding a new Workflow Task with its Corresponding ID to the Workflow Task Filter

You can add Workflow tasks and their corresponding IDs to the Workflow task filter. If the filter is active, only the Workflow items maintained in this list are included in the query results. Notifications are sent to the SAP Gateway only for these items.

You can define a name to be displayed when reading a specific task. Names can be maintained in several languages. You can add names only in the language in which you logged on to the system. If a task is read in a specific language in which no name is maintained, the name is read according to the system kernel language. If no name is maintained for the system kernel language, the name consists of the Workflow and step ID.

To add the new Workflow task:

  1. In the Dialog Structure section, select Step Name.

  2. Choose New Entries.

  3. In the Step Name section, enter the Workflow ID and step ID, and step description in the relevant columns.

Defining Decision Keys

You can use decision keys to help include steps in the user decision service. A decision can be applied to the task using these keys. The functionality is carried out using the following enhancement spot customer implementation: /IWWRK/ES_WF_WI_BEFORE_UPD_IB.

The descriptions for the decision keys can be maintained in several languages. You can only enter text in the language in which you logged on to the system. If a task is read in a specific language and no text is maintained for the decision key in this language, the text is read according to the system kernel language.

To define decision keys:

  1. In the Step Name section, select the relevant Workflow.

  2. In the Dialog Structure section, double-click Decision keys.

  3. Choose New Entries.

  4. In the Decision Key section, add a new decision key and its description in the relevant columns.

Enable Task Filter

This activity allows you to activate or deactivate the task filter.

By default, the filter is deactivated.

When the task filter is set to Active:

  • Sending Notifications: Only notifications of items that were configured using the Maintain Task Names and Decision Options IMG activity or the Workflow Pattern Customization IMG activity are sent.

  • The SAP Gateway Workflow service only receives items that were configured using the Maintain Task Names and Decision Options IMG activity or the Workflow Pattern Customization IMG activity.

When the task filter is not set to Active:

  • All notifications are sent.

  • All items are read.