WebFlow 

Purpose

WebFlow provides functions that enable SAP Business Workflows to be executed across the Internet. WebFlow makes it possible to:

Prerequisites

A Web server and an Internet Transaction Server (ITS) must be configured for the SAP System for the transmission and reception of the XML documents to be successful. For further information, refer to Defining the Web Server.

Process Flow

You can either send XML documents you have created yourself or have WebFlow create a Wf-XML document from your data. For further information, refer to Creation of a Wf-XML Document.

To send XML or Wf-XML documents, you use the step type Web activity in a workflow. For further information, refer to Maintenance of a Web Activity.

The transfer protocols http and https are used for the transmission. A transmission of this type is not completed until the other system has sent back an http reply.

A special service must be active for a Business Workflow to be started by an inbound Wf-XML document in a SAP System. This service processes the inbound Wf-XML document and writes the data contained into the import parameters of the Business Workflow to be started. The Business Workflow is then started and executed.

The following are possible scenarios:

Sending an XML document to another system

You can send an XML document that you created yourself from your SAP System A to system B using a WebFlow. The Web activity sends your XML document to the recipient you specified. If system B's http reply contains an XML document, it can be stored in the workflow container. The Business Workflow in system A is then continued.

Sending a Wf-XML document to another system

You can have the WebFlow create the XML document to be sent. A Wf-XML document is then sent to system B, which contains your data and the http reply is evaluated by the WebFlow. The Business Workflow in system A is then continued.

Sending a Wf-XML document to another system with feedback

This scenario is the same as the scenario without feedback up to reception of the http reply.

The Web activity waits for a Wf-XML reply document. The Web activity writes the data in it into the workflow container and the Business Workflow in system A is continued.

Sending a Wf-XML document to another SAP system and starting a Business Workflow

If you want to start a Business Workflow in SAP System B using a WebFlow, have the system create a Wf-XML document for you from your data. You can use a wizard to generate the URL to which the Wf-XML document is sent. To ensure that the Business Workflow to be started in system B receives all the data required, you must know the interface of the Business Workflow to be called in full. The http reply is evaluated by the WebFlow and the Business Workflow in System A is then continued.

Sending a Wf-XML document to another SAP system and starting a Business Workflow with feedback

This scenario is the same as the scenario without feedback up to reception of the http reply.

Once the Business Workflow in system B is terminated, the export parameter data of the interface is sent back to the calling Business Workflow in system A as a Wf-XML reply document. The Web activity writes this data into the workflow container and the Business Workflow in system A is continued.

Starting a Business Workflow with an inbound Wf-XML document without reply

When a Wf-XML document arrives, the WebFlow tries to start the Business Workflow named in the document. The data contained in the Wf-XML document is written into the relevant import parameters of the interface. The WebFlow sends an http reply back.

Starting a Business Workflow with an inbound Wf-XML document with reply

This scenario is the same as the previous scenario without reply.

Once the Business Workflow has been terminated the WebFlow creates a Wf-XML reply document. The export parameter data of the interface is written into this, and the document is sent back to the calling system.