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

  1. Choose Start of the navigation pathTools Next navigation step Business Workflow Next navigation step Development Next navigation step Definition Tools Next navigation step Workflow Builder Next navigation step Workflow BuilderEnd of the navigation path.

    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.

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

  1. Choose <Double-click to create> by double-clicking in the Workflow Container tray.

    The dialog box for creating a new container element is displayed.

  2. Enter the following data:

    • Element: ProductionOrder

    • Name: Production order

    • Short text: Production order

    • Object type category: BOR object type

    • Object Type: Z ini _2005

  3. Set the Import and Mandatory flags on the Properties tab page.

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

  1. Choose .

  2. Enter the following data:

    • Abbreviation: Z ini _Mail

    • Name: < Mail for production order>

    The Create object directory entry dialog box appears.

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

  1. Choose .

    The basic data of the workflow is displayed.

  2. Change to the version-independent basic data on the tab page Start events.

  3. Enter the following data:

    • Category: BOR object type

    • Object type: Z ini _2005

    • Event: released1

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

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

  6. Choose to display all of the container elements in the workflow container to which you can define a binding.

  7. Assign the _Evt_Creator container element in the event container to the _WF_Initiator element in the workflow container. Use the F4 input help.

  8. Choose .

  9. Exit the basic data of the workflow and choose .