Siebel SmartScript Administration Guide > Working with Questions, Answers, and Translations >

Question Events Logic Sequence


Figure 2 illustrates the logical order and structure of how Siebel SmartScript uses VB code and search specs, creates new records, and does text substitution. Table 5 provides a description of each label in Figure 2.

For more information on using Siebel VB or eScript to extend the SmartScripts, see Extending Scripts with Siebel VB and Siebel eScript.

Figure 2. Logical Sequence of Question Events

NOTE:  Each business component can have only one active record for a single user session, but there may be many active records in multiple business components for a single user session.

Table 5. Description of Labels in Figure 2
Label
Description

1

Question_Enter

2

Checks if a search spec exists for the question?

If yes, Siebel SmartScript proceeds to step 2.a.i. If not, Siebel SmartScript proceeds to step 2.b.

2.a.i

Checks if the Save Bus Comp field contains a value.

2.a.ii

Checks if the business component specified in the Save Bus Comp field contains an active value?

2.a.iii

Creates a new record in the business component and makes it active.

2.b

Executes search on business component in the Save Bus Comp field.

This locates a record ID that becomes active in the business component.

3

Performs text substitution on the question text before it displays. Any parameters in the Auto Sub Parm field that also appear in the question text convert to the values specified by the parameters.

4

After a user answers a question, if the Save Bus Comp field has a value, the active record saves the user's answer.

5

If the Save User Parameter field references a parameter, the answer is saved to that parameter.

6

All question leave events execute. For example, Question_Preleave, Question_Prebranch, and so on.

Siebel SmartScript Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.