To change the value of a variable you can use the Executable Assign in OnEntry, OnExit or OnTransition. In the property field “Expression” insert the new value of your variable (this can also be a jexl-expression). In the property field „To“ insert the name of the variable. You can also use Java-PlugIns in the expression that defines the value of your variable (e.g. $expr(JavaPlugin.someFunction())).
A second option is to set the default value of the Variable, when the variable is declared. The content can again be the value or a jexl-expression.← How do I change the values of certain variables which I created in SiAM-dp? Can I bind them to conditions?