Configuring the Workflow process on SAP Gateway.
There are two services for consuming Workflow. Choose the appropriate service for your system landscape.
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:
Set the system alias as described in Creating an SAP System Alias.
If you are using the central hub deployment option, set the For Local App flag.
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:
From your SAP system, open transaction SPRO.
Choose SAP Reference IMG.
Navigate to
.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:
In the Dialog Structure section, double-click Providers.
From the Providers table, select the BWF checkbox to activate the /IWWRK/WFSERVICE subscription notification.
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.
In the Dialog Structure section, double-click Providers.
Choose New Entries.
In the Providers section, enter the provider ID and select the Active checkbox.
Choose Save.
In the Dialog Structure section, select Provider Details.
Choose New Entries.
In the Provider Details table, enter the provider ID, the default internal service name, the version number, and the provider's description.
If no specific service can be found for an item, the default service and version number is used instead.
Choose Save.
Defining the Provider Adapter Classes
In the Dialog Structure section, select Task Providers.
In the Task Providers table, select the relevant provider.
In the Dialog Structure section, double-click Adapter Classes.
Choose New Entries.
In the first line of the Adapter Classes table, under Adapter Type, select Generic Worklist from the drop-down list.
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).
In the second line of the Adapter Classes table, under Adapter Type, select Push Framework from the drop-down list.
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).
Choose Save.
Defining the Provider Specific Services
In the Dialog Structure section, select Task Providers.
In the Task Providers section, select the relevant provider.
In the Dialog Structure section, double-click Services.
Choose New Entries.
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.
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.
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:
In the Dialog Structure section, select Step Name.
Choose New Entries.
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:
In the Step Name section, select the relevant Workflow.
In the Dialog Structure section, double-click Decision keys.
Choose New Entries.
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.