User node class. Nodes are described in detail in Nodes article.
Checks if this node is ready to be exited or timed out.
Returns:
Operation error code:
ok
- all conditions are met, node can be completed.
notCompleted
- some conditions are not met.
failure
- timed node failure due to completion timer.
Stores user logic state into an anonymous object for client response.
Returns:
Anonymous object with user node parameters.
Returns current value of node variable as Int
.
Parameters:
name
Variable name.
Returns:
Variable value. Returns 0, if variable is not found.
inline increaseVar (name:String, amount:Int):Void
Increases node variable by a given value. Does not take variable type into account, so do not define node variables with the same name.
Parameters:
name
Variable name.
amount
Amount to increase by.
setVar (id:String, val:Dynamic, ?isInit:Bool):Void
Sets node variable to a given value.
Parameters:
id
Variable id.
val
Variable value.
isInit
Used when called from init()
method to skip marking block as updated.
Do not use.