Local Workflow
Unlike a
sub-Workflow, a local Workflow (
) has
full access to the data in the Workflow container. In the local container you
can also define additional container elements. A local Workflow is started by
means of a local event. You can use a local Workflow, for example, to model
reactions to business exception situations. For example, if you model how an
order is processed in Workflow, you can use a local Workflow to model how you
want exception handling to function should the order be deleted. This local
Workflow can be started by a local event Order
Deleted and, for example, trigger a notification to be sent to the
administrator.
A local Workflow is called asynchronously. This means that the caller step does not wait for the local Workflow to be completed. An instance of the caller Workflow can start multiple instances of the local Workflow.
The local Workflow has full access to all elements of the Workflow container of the caller Workflow. The local Workflow has a separate local container for each instance. The local container contains the elements of the Workflow container. You can define separate elements and complete them by using a binding or initial value.
You have defined a local event in the caller Workflow to start the local Workflow.
You have created a Workflow pattern in which you can create the local Workflow.
1.
Define the
local event to start the Workflow in the version-specific basic
data of the Workflow (
).
2. Insert a process control at the required position in the Workflow to trigger the local event.
3. Define a Local Workflow step at the required position in the Workflow.
¡ Enter the local event to start the local Workflow on the Control tab page. If you want to use data from the event in the Workflow, define the corresponding binding.
¡ Define the local container on the Local Container tab page.
The system
inserts a Local Workflow step into
the workflow definition. The start and end of the local Workflow are indicated
by the Start (
) and End (
) icons.
You can then define further steps within the local Workflow.