Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Using Trigger Sets to Simulate an Event Sequence

As a simple example of how useful trigger sets are, consider this example trigger set and associated diagram.

In this example we simulate a simple "three strikes and you are out" login process, taking a user name and password. The success path is waiting for the name "Joe" and the password "secret" (note - it is very important that parameters referencing strings are enclosed in quotes, otherwise the interpreter thinks the name refers to another variable within the simulation).

  • Pass 1 tries Joe and guess1 - which fails
  • Pass 2 tries Joe and secret, but as they are referring to variables, not strings - this fails as well
  • Pass 3 shows the correct way of referencing trigger parameters and the simulation will succeed

Here is a simple diagram simulating a login process requiring a username and password pair.