Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > SmartScript Methods >

ExecutionState


ExecutionState returns the current state of a running SmartScript.

Syntax

ExecutionState

Returns

A representation of the current state of the SmartScript as an integer value. The values are represented by the following constants, each of which is followed by its integer equivalent:

Script State
Integer Value

Not available

0

ssInitializing

1

ssRunning

2

ssFinished

3

ssCanceled

4

Usage

ExecutionState returns zero (0) if the SmartScript object has not been specified to execute (used when listing available SmartScripts).

Siebel SmartScript Administration Guide Copyright © 2006, Oracle. All rights reserved.