Siebel Business Process Designer Administration Guide for Financial Services > Predefined Business Services > Predefined Business Services >

SmartScript Integration with Workflow


You can invoke a SmartScript from a workflow process and pass parameters from the SmartScript to the workflow process. These business services support SmartScript integration with workflow:

NOTE:  In order to completely understand the concepts in this section, familiarity with SmartScript is required. For more information, see Siebel SmartScript Administration Guide.

Business Scenario

The scenario outlined in this section is an example of how to insert a SmartScript in a workflow process. After the SmartScript ends, the workflow proceeds to the next step in the workflow process. Your company may follow a different workflow that fits its business requirements.

In this scenario, you are designing a SmartScript that allows customers to complete a loan application online. After the loan application is complete, your workflow verifies the customer's address in an external system.

Integrating SmartScript with Workflow

To configure SmartScript integration with Workflow

  1. In the SmartScript, create Save User Parameters for the parameters you want to pass to the workflow. For more information on SmartScript user parameters, see Siebel SmartScript Administration Guide.
  2. Create a Business Service step for your workflow using the FINS Web Shopping Service business service.
    1. Enter the input arguments described in Table 102.
  3. Create a subprocess that will invoke the SmartScript using the workflow User Interact step. The subprocess is based on the SmartScript Player business object and has three steps: a start step, a user interact step, and an end step.
    1. In the user interact step, set the view name to "FINS SmartScript Player View (App)".
    2. In the Next Step's applet, add two conditions, entering the information listed in the tables below:
    3. Field
      Entry
      Branch Name
      Cancel
      Type
      Condition
      Next Step
      End
      Event Object Type
      Applet
      Event
      Invoke Method
      Event Object
      Smart Script Player Applet (FINS eSales App)
      Subevent
      CancelScript
      Entries for Record 1 (first condition):

      Entries for Record 2 (second condition):

Field
Entry
Branch Name
Finish
Type
Condition
Next Step
End
Event Object Type
Applet
Event
Invoke Method
Event Object
Smart Script Player Applet (FINS eSales App)
Subevent
FinishScript

  1. Add a Business Service step using the FINS SmartScript Output Service business service. Enter the output arguments described in Table 103.

Now you may either end your workflow process or include additional steps, depending on your company's business requirements. The SmartScript is integrated in your workflow process.

FINS Web Shopping Service Methods

The FINS Web Shopping Service business service methods are described in Table 102.

Table 102. FINS Web Shopping Service Methods
Method
Description / Arguments
SetSmartScriptName
Input Arguments:
  • Script Name (Required): The name of the SmartScript you want to invoke.
  • SSUserParameter# (Required): A SmartScript user parameter between 1 and 20. For example, "SSUserParameter1." The value for the input argument must be the exact name of the user parameter specified in the SmartScript whose value needs to be passed into the workflow process at the conclusion of the SmartScript.

FINS SmartScript Output Service Methods

The FINS SmartScript Output Service business service methods are described in Table 103.

Table 103. FINS SmartScript Output Service Methods
Method
Description / Arguments
SetOutput
Reads the SmartScript user parameters and outputs them as workflow properties:
Output Arguments:
  • The name of the user parameter. Specifying the SmartScript user parameters as output arguments passes the value of the user parameters back to the workflow process when the SmartScript ends. These output arguments can be mapped to process properties.
  • SmartScript Result Action: Returns the action users take to end the SmartScript. Possible values are "Finish" or "Cancel."


 Siebel Business Process Designer Administration Guide for Financial Services 
 Published: 22 May 2003