Lesson 6: Defining Workflows
Use
A mail is to be sent once the production order has been released. This is carried out by a workflow which you will define in this unit.
Procedure
-
Choose .
The Workflow Builder screen is displayed. If you are starting the Workflow Builder for the first time, an initial workflow definition is displayed there. Otherwise, the workflow that was processed last is opened.
-
Choose
.The Workflow Builder - Create 'Unnamed' screen is then displayed. An initial workflow definition is displayed.
Create container element in the workflow container
You must now add a container element to the workflow container that can store an object reference to a production order.
-
Choose <Double-click to create> by double-clicking in the Workflow Container tray.
The dialog box for creating a new container element is displayed.
-
Enter the following data:
-
Element: ProductionOrder
-
Name: Production order
-
Short text: Production order
-
Object type category: BOR object type
-
Object Type: Z ini _2005
-
-
Set the Import and Mandatory flags on the Properties tab page.
-
Choose
.The new container element is displayed in the workflow container tray. The symbol
shows that the new container element is an import parameter of the workflow and thus belongs to the workflow interface.
Saving the workflow
-
Choose
. -
Enter the following data:
-
Abbreviation: Z ini _Mail
-
Name: < Mail for production order>
The Create object directory entry dialog box appears.
-
-
Choose Local Object.
Determine Triggering Event
If a workflow is to be started by an event, you must define this as a triggering event. In this scenario, the workflow is to be started as a response to the released1 event of your object type Z ini _2005. You must activate the type linkage for this event and define a binding.
-
Choose
.The basic data of the workflow is displayed.
-
Change to the version-independent basic data on the tab page Start events.
-
Enter the following data:
-
Category: BOR object type
-
Object type: Z ini _2005
-
Event: released1
-
-
Activate the type linkage
Click on
in the event column.Active type linkages are marked with
.Defining the binding between the event container and the workflow container
The event parameter _Evt_Object of the event released1 contains the object reference to the released sales order.
The event parameter _Evt_Creator of the event released1 contains the name of the person whose system user was used to generate the event. The name is stored in the form US<Name> in this element.
This information must be transferred by means of a binding between the event container and the workflow container.
The workflow container contains the production order (technical name: ProductionOrder) und das standardmäßig vorhandene Element Initiator (technischer Name: _WF_Initiator).
-
Choose released1
in the event line.You are on the Task: Binding triggering Events screen. The workflow system has automatically assigned the contain element _Evt_Object of the event container to the ProductionOrder element of the workflow container.
-
Choose
to display all of the container elements in the workflow container to which you can define a binding. -
Assign the _Evt_Creator container element in the event container to the _WF_Initiator element in the workflow container. Use the F4 input help.
-
Choose
. -
Exit the basic data of the workflow and choose
.

