An entry is an activity that runs when entering a state;
an exit runs when leaving a state.
About this task
To add an entry or an exit to a state or a composite state,
proceed as follows:
Procedure
- On the canvas, select and hover over the state that you
want to modify.
- Click the appropriate entry or exit element icon in the
action bar.
- In the Properties area, click the Details tab.
- Determine which type of implementation you would like to
use. You have the following choices:
| Option |
Description |
| Visual |
Choose this to use the visual snippet editor to graphically
compose Java™ code. |
| Java |
Choose this to write the Java code
yourself. |
| Invoke |
Choose this to invoke an operation on a reference. |
Results
Your newly created entry or exit will appear on the canvas
along with the activity that it is associated with.