Definition of a WebFlow Rule


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:

  • Determination of URL
  • Preparation of the XML document
  • Determination of the authentication data
  • Execution of the send procedure
  • Determination of transfer format


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


WebFlow: Sending


WebFlow: Preparation of the XML document


WebFlow: URL determination


WebFlow: Determine format (if group)


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

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


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.

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.


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.