Each component which simulation state is set to Scripted has a Simulation Script (SS) defined in the Simulate tab.
Here is list of objects exposed to you for direct use from a SS:
The table below explains the methods being simulated, it shows when the SS will be invoked.
Mode | Method |
---|---|
Connector: AddOnly | putEntry |
Connector: Update | modEntry, or putEntry if the entry couldn’t be found |
Connector: Delete | deleteEntry |
Connector: Delta | modEntry, putEntry or deleteEntry (depends on inner logic) |
Connector: Iterator | getNextEntry |
Connector: CallReply | queryReply |
Connector: Lookup | findEntry |
Function component | perform |
If a Connector is in Server mode with a Scripted simulation state it would still require to receive a request from a client. The SS will be called when the response is to be sent.
The internal lookup operation that is executed for Connectors in Update, Delete and Delta mode will be done internally and it won’t allow overriding from a SS like it does for the proxy AssemblyLine.
Connectors in this simulation state will not execute the operation’s override hook if any.
Parent topic: AssemblyLine Simulation Mode