Keep Informed

Entries in Choice Point (1)

Thursday
Jan122012

Accessing Event Arguments in MiceOnABeam v1.0.3

Over the next while I want to illustrate some of the new features available in MiceOnABeam v1.0.3.

In v1.0.3 event arguments can now be directly accessed from the outgoing transitions of a Choice Point, instead of having to first save them in a state variable within the action code of the transition incoming to the Choice Point. This is true as long as there is only a single incoming transition and it has an event assigned.

Applying this to the model developed in the MiceOnABeam Basics video tutorial, we no longer have to save the data argument in the Line state variable in the dataserver transition. We can now access data directly in the GetNextLine and Done transitions.

Additionally as v1.0.3 now allows multiple bends within a transition, we added an additional curved bend to the Done transition to pretty up the diagram.

You can download an updated version of the Secure Door model from the video tutorial here.