Skip to content
logoBack to home screen

State Change Processor

TODO move to correct extension

A state change processor carries out an operation when there is a change in a watched state.

General

tribefire offers the ability to create custom state change processors, which are used to carry out operations when a watched state is altered, in conjunction with the On Change metadata.

For more information about the On Change metadata, see On Change. You can script such a processor using one of the available scripting languages directly in Control Center or create one in a cartridge.

A state change processor is configured by using one of the subtypes of the entity StateChangeProcessor depending on the type of processor that you wish to configure.

We support the following types of StateChangeProcessor:

TypeDescription
ScriptedStateChangeProcessorWorks based on a script which you can create directly in Control Center.
VersatileScriptedStateChangeProcessorWorks based on a script which you can create directly in Control Center and allows you to specifically address the three different phases of the StateChangeProcessor: beforeScript (script called before a state change is committed), processScript (after a state change is committed in an asynchronous way), and afterScript (after a state change is committed in a synchronous way).
CartridgeStateChangeProcessorWorks based on an implementation provided in a cartridge.

For a tutorial on creating a scripted state change processor, see Creating a Scripted State Change Processor.

Properties

PropertyDescription
externalIdExternal ID of the state change processor.
nameName of the state change processor.
autoDeployBoolean flag influencing whether to autmatically deploy this state change processor.
cartridgeConfigured cartridge which contains the state change processor implementation
deploymentStatusDeployment state of this state change processor.
scriptOnly in ScriptedStateChange processor. A Script object where the implementation of a state change processor can be inputed directly.
afterScriptOnly in VersatileScriptedStateChange processor.
beforeScriptOnly in VersatileScriptedStateChange processor.
processScriptOnly in VersatileScriptedStateChange processor.