Adding and Defining Events

This section discusses how to add and define events in PeopleSoft Application Designer.

To add an event:

  1. Open the activity to which you want to add the event.

  2. Click the Event button in the toolbar.

  3. Click where you want the event to appear on the map.

    The Event icon appears on the map.

  4. Connect the Event icon to the icon for the step that triggers it.

    1. Click the Connector icon in the palette.

    2. Click the Step icon and then the Event icon.

      An arrow connects the two icons.

      Use the Link icon, not the Line icon, to connect an event to the step that triggers it. If you use the Line icon, the system will not recognize the event.

To define the event:

  1. Double-click the Event icon, or right-click and select Item Properties.

    The Event Definition dialog box appears.

  2. Enter a name and description of the event.

    Field or Control

    Description

    Name

    Enter the name used to trigger the event with the TriggerBusinessEvent PeopleCode function. By default, the event name also appears as the display text under the icon on the map.

    Active

    When an activity triggers an event, the TriggerBusinessEvent function determines whether the event is active. To temporarily deactivate an event, preventing any of its routings, clear this check box. To restart an inactive event, select it.

    Event Triggered from Record Name

    Select the record definition to which you want to add Workflow PeopleCode to trigger the business event.

To edit the business rules:

  1. Click the Edit Business Rules button.

    The PeopleCode Editor appears. The name of the first key field in the specified record definition appears in the title bar.

    Note: The Edit Business Rules button adds the Workflow PeopleCode to the first key field in the specified record definition. If you use Virtual Approver, use PeopleSoft Application Designer to add SaveEdit PeopleCode to this same record.

  2. Enter the PeopleCode that triggers the business event.

  3. Save the PeopleCode.

  4. Click OK to close the Event Definition dialog box.