Entering content frameFunction documentation Definition of a WebFlow Rule Locate the document in its SAP Library structure

Use

WebFlow rules are used within a workflow in the basic data and in the Web activity step type. Using a WebFlow rule you can individually execute the following parts of a Web activity:

Prerequisites

To use a WebFlow rule, you must create an ABAP class. Depending on the type of the WebFlow rule, this class must support the following interfaces:

WebFlow Rule Type

Necessary Interface

WebFlow: Authentication

IF_SWF_XML_RULE_AUTHENTICATE

WebFlow: Sending

IF_SWF_XML_RULE_DATA_SEND

WebFlow: Preparation of the XML document

IF_SWF_XML_RULE_DATA_SET

WebFlow: URL determination

IF_SWF_XML_RULE_URL

WebFlow: Determine format (if group)

IF_SWF_XML_RULE_FORMAT

To see an example implementation, see the ABAP class CL_SWF_DEMO_WEBACTIVITY.

Note

At the moment the rule type WebFlow: Signature is only used internally.

Features

If you use a WebFlow rule in a Web activity, the execution of the rule replaces the usual process. Depending on the type of the WebFlow rule, the system automatically transfers particular data. For more information, see the appropriate interface documentation.

Note

In the WebFlow rules Send data and Prepare XML document, you can also make use of the standard process, executing your own process only in particular cases. The methods for doing this are available in the class CL_WAPI_WEBFLOW_SERVICES.

Activities

You create a WebFlow rule by accessing the Rule: Change or Rule: Create screen. Enter the abbreviation and the name of the rule, and select a rule type. Under Object type name, enter the ABAP class you created for the rule. You must transfer all additional data that you need for execution via the rule container. For more information, see Creating Rule Containers.

Leaving content frame