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 |
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.
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.
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.