SetAttribute2 function (automation interface)
Syntax:
SetAttribute2(<handle to listener dll>,<instance id>,"<class id>","<attribute>","<attribute value>")
Where:
• <handle to listenerdll> is a numeric value that specifies the handle to the listener.dll, which is returned by the CreateStateMachine and GetStateMachineHandle functions.
• <instance id> is a numeric value that specifies the instance id of the state machine for which you want to set the Attribute value. The first instance is 1, second instance is 2, etc.
• <class id> is a string that specifies the id of the Class that owns the state machine from which you want to set an Attribute value.
• <attribute> is a string that specifies the name of the Attribute from which you want to set the value. For more information, see
Identifying attributes
• <attribute value> is a string that specifies the value you want to set for the Attribute.
This function sets the value of the Attribute for the specified instance of the state machine and returns a Boolean value to indicate success or failure.
The SetAttribute2 function replaces the SetAttribute function, which cannot work with different instances of a state machine.
Examples