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
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.
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.
The dialog box for creating a new container element is displayed.
Element:
Name
: Production orderShort Description
: Production orderObject type category
: BOR object typeObject type
: Zini_2005The 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
Abbreviation:
Zini_MailName
: <Mail for production order>The dialog box Create object directory entry is displayed.
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 Zini_2005. You must activate the type linkage for this event and define a binding.The basic data of the workflow is displayed.
Category:
Object type
: Zini_2005Event
: released1Activate the type linkage
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) element you created as well as the standard initiator element (technical name: _WF_Initiator).The Task: Binding for Triggering Events dialog box is then displayed. The workflow system has automatically assigned the contain element
_Evt_Object of the event container to the ProductionOrder element of the workflow container.