Example of Integrating SmartScript with Workflow
The scenario outlined in this topic 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 might 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 the table in FINS Web Shopping Service Methods.
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 described in the following tables.
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
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
Add a Business Service step using the FINS SmartScript Output Service business service. Enter the output arguments described in the table in FINS SmartScript Output Service Methods.
Now you might either end your workflow process or include additional steps, depending on your company’s business requirements. The SmartScript is integrated in your workflow process.