Siebel Business Process Designer Administration Guide > Reference Materials for Siebel Workflow > Passing Parameters to and from Workflow and Data Manipulation within Workflows >

Manipulating Data Within Workflows


You can manipulate data within workflow processes. This section explains how to access run-time event parameters from workflow processes.

To access run-time event parameters from workflow processes

  1. Set up a run-time event for each applet that is required to trigger a workflow process.

    Fill in the fields of the WF Step Branch applet. Example field values are shown in the following table.

    Field
    Value

    Branch Name

    Enter a name for the branch.

    Type

    Condition

    Next Step

    Enter a name for the next step.

    Event Object Type

    Applet

    Event

    InvokeMethod

    Event Object

    Choose the name of the event object that will trigger the workflow.

    Sub Event

    NewRecord

    Comments

    Optional

    Event Cancel Flag

    The default is blank.

  2. Set up your process properties in Process Designer as usual. For information on using process properties, see About Process Properties.
  3. Drill down into the first step in your workflow process and add a new output argument for each process property you want to populate using run-time events. Add new output arguments by filling in the fields of the Output Arguments applet. Example field values are shown in the following table.
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, make note of the name you give to each of the Profile Attributes property values, for use in Step 8.

Output Argument

Leave as default.

Business Component Name

Leave as default.

Business Component Field

Leave as default.

Comments

Optional

  1. Activate the workflow process. For more information, see Deploying Workflow Processes.
  2. Since the workflow process includes run-time events, you must load the run-time events.
    1. From the application-level menu, choose Navigate > Site Map > Administration - Runtime Events > Events.
    2. From the applet menu, select Reload Runtime Events.
  3. From the Events view tab, find the run-time event that is associated with the workflow run-time event that you created. As an example, you can query for the InvokeMethod event on the Opportunity List Applet object.
  4. Drill down on the Action Set Name. The Actions view is shown in the following figure.
    Click for full size image
  5. Add a new Action for each process property that will be populated using run-time events. For example, you can create a new action to set the ACU Transaction ID and call it Set ACU Trans ID.
    1. For each new action:
      • Set the Action type to Attribute Set.
      • Set the Profile Attribute to match the value you used in the GetProfileAttr call in the Process Designer in Step 3, such as TransType.
      • Set the Set Operator value to Set.
      • Assign the Value field the appropriate value, such as the literal string FA-0001. You assign the value using the standard Siebel expression builder.
      • Set the Sequence for the action to be less than the default sequence (for the Workflow_XXXXXXX Action).
    2. Make sure the Sequence setting of the Workflow_XXXXXXX Action is the highest number so that this action happens after all the other actions.

      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.

    3. From the applet menu, select Reload Runtime Events.
Siebel Business Process Designer Administration Guide