Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

Reserved variables in Flux

Flux uses predefined variables for different purposes. Some variables are used by the engine while some are populated for you for convenience purposes. Do note of these variables because they might come in handy in some cases. Also make sure that your variable names don't conflict with them.

Variable Name Data Type Description
$fluxEvent String Used by states to know which transition to invoke next.
$else String Used as a transition event to handle any undefined events.
$exception String Used as a transition event to handle any exceptions thrown by a state.
$fluxException GloopModel Used to identify what exception occurred on a state, available as transition input only if $exception is used.
$fluxContextId Long ID of the currently running service, can be used on any state.
$fluxName String Name of the currently running service, can be used on any state.
$fluxStateName String Name of the current state, can be used on any state.
$triggerFluxEvent String Event that was used to trigger the Flux service, available as Flux input.