I have a model in which an agent (Person) flows through a flowchart (Process modeling library). I want to update the transition probability of a statechart in Person according to Person's position in the flowchart. How do I do that?
I believe I have to use
OnChange()
to let the engine recalculate the transition probabilities, but otherwise I do not know how to implement this.
As illustration, two screenshots from an example model:Flowchart and Statechart.
So what I want is that Person's transition probability in the statechart is different according to which branch of the flowchart it is. That is to say, all instances of Person start with the same transition probabilities, but once they reach a specific point in the flowchart, the transition probabilities should be updated.