Siebel Business Process Framework: Workflow Guide > Reference Materials for Siebel Workflow > Manipulating and Processing Data >

Accessing Run-Time Event Data


This topic explains how to access run-time event data from a workflow process.

To access run-time event data from a workflow process

  1. Expose the WF Step Branch object type in the Object Explorer.
  2. In the WF Step Branch OBLE, define the properties for a WF Step Branch object definition. Use the sample data described in the following table:
    Property
    Value

    Name

    Enter a name for the branch.

    Type

    Condition

    Event Object Type

    Applet

    Event

    InvokeMethod

    Event Object

    Choose the name of the event object that triggers the workflow.

    Sub Event

    NewRecord

    Comments

    Optional

    Event Cancel Flag

    The default is blank.

  3. Set up process properties in the Process Designer.

    For information, see About Process Properties.

  4. Click the first step in your workflow process, then add a new output argument for each process property you need to populate that references a run-time event.

    To add a new output argument, enter values into the argument fields displayed under the Output Arguments tab in the MVPW. Use the sample values described in the following table:

    Argument Field
    Value

    Property Name

    Enter a name for the property.

    Type

    Expression

    Value

    GetProfileAttr("RestrucOut")

    Note: As you are filling in the Profile Attribute field, note the name you give to each of the Profile Attributes property values. These are used in Step 9.

    Output Argument

    Leave default value.

    Business Component Name

    Leave default value.

    Business Component Field

    Leave default value.

    Comments

    Optional

  5. Activate the workflow process.

    For more information, see Process of Deploying a Workflow Process.

  6. Since the workflow process references run-time events, you must load the run-time events:
    1. Navigate to Administration-Runtime Events > Events.
    2. Click the Menu button on the Events list applet, then choose Reload Runtime Events.
  7. Query the Event field for the run-time event you defined in Step 4.
  8. Drill down on the Action Set Name field.
  9. , Add a new Action for each process property that is populated by using a run-time event.

    For example, you can create a new action to set the ACU Transaction ID and call it Set ACU Trans ID. Tasks you should perform for each new action include:

    • Set the Action Type property to Attribute Set.
    • Set the Profile Attribute to match the value you used in the GetProfileAttr call in the Process Designer inStep 4, such as TransType.
    • Set the Set Operator value to Set.
    • Use the expression builder to assign the Value field an appropriate value, such as the literal string FA-0001.
    • Set the Sequence for the action to be less than the default sequence for the Workflow_XXXXXXX Action.
    • Make sure the Sequence setting of the Workflow_XXXXXXX Action is the highest number so that this action happens after every other action.

      NOTE:  Whenever you modify the workflow process, you must repeat this step because modifying a workflow process resets the workflow action's sequence to 1.

  10. From the applet menu, choose Reload Runtime Events.
Siebel Business Process Framework: Workflow Guide Copyright © 2008, Oracle. All rights reserved.