Show TOC

Generating UI Components for Process Start and Intermediate Message TriggersLocate this document in the navigation structure

When you model a business process, you can generate a UI component for message triggers, either via the process diagram editor and the properties view, or via the project explorer.

Prerequisites

  • You have opened the Process Development perspective in the SAP NetWeaver Developer Studio, and have expanded your project in the Project Explorer view.

  • You have modeled a process containing start or intermediate message events.

  • You have created the necessary service interfaces and operations with data types assigned.

Context

When you model a process, you use message triggers to assign them to the start or intermediate events in the process. At runtime, the message can be triggered via SOAP Web Service, BPM OData Service, or BPM Public API. The generated UI component uses the BPM OData Service to interact with the BPM system.

For more information about the prerequisites and details of interacting with BPM via OData, see BPM OData Service.

When you model a message event, you have the option to create a message trigger for it, using the Event Trigger tab in the event’s Properties view. The event trigger is automatically assigned to the event. You can also create a new message event trigger via the context menu of the Event Triggers folder in the Project Explorer view. Both options allow you to generate a UI component for the newly created message event trigger.

The generated UI component is based on the input message data type of the service operation selected for the message event trigger. For more information, see Creating Service Interface Definitions.

The UI component is generated automatically using SAPUI5 technology. It is created in the respective development component (DC), which is a Web DC. You can create the UI component in an existing or in a new DC. For more information, see Creating a Project.

Procedure

  1. Expand Process Modeling.

    There are two different ways to do this:

    In the Properties view in the Process Diagram editor:

    1. Expand Processes.
    2. In the context menu of a process, choose Open.
    3. In the modeling surface, choose an event.
    4. In the Properties view of the event, open the Event Trigger tab, choose Message as Trigger Type, and New... from the Trigger dropdown menu.

    In the Project Explorer view:

    1. In the context menu of the Event Triggers folder, choose New Message....
  2. In the wizard that appears, specify a name for the message trigger in the Name field.
  3. Optional: Enter a description in the Description field.
  4. Select the Generate UI Component checkbox, and choose Next.
  5. Specify the DC in which the UI components are to be generated.

    You can select an existing DC from the Development Component dropdown menu, or choose New... and create a new DC.

    Then, choose Next.

  6. Specify a UI component name, and choose Finish.

Results

The message trigger is created together with a UI component. You can view the event trigger in the Event Triggers node in the Project Explorer view, and edit it in the event trigger editor. You can open the respective Web perspective to view the generated UI component. To do this, choose Start of the navigation path Window Next navigation step Open Perspective Next navigation step Other End of the navigation path, and select the relevant perspective.
Note In the Web DC where the UI was generated, you will find a README.txt file that provides the URL to the generated UI.