Siebel Healthcare Guide > Business Services for Siebel Financial Services > SmartScript Integration with Workflow >
Example of Integrating SmartScript with Workflow
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. To configure SmartScript integration with Workflow
- 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.
- Create a Business Service step for your workflow, using the FINS Web Shopping Service business service, and enter the input arguments described in Table 31.
- Create a subprocess to 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.
- In the user interact step, set the view name to FINS SmartScript Player View (App).
- In the Next Step's applet, add two conditions, entering the information listed in the following tables:
Entries for Record 1 (first condition):
|
|
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 2 (second condition):
|
|
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 |
- Add a Business Service step using the FINS SmartScript Output Service business service. Enter the output arguments described in Table 32.
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.
|