Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:hybrid_model [2020/12/31 03:04] admin [Generate Test Cases] |
tutorial:hybrid_model [2020/12/31 17:22] admin [Generate Test Cases] |
||
---|---|---|---|
Line 162: | Line 162: | ||
To write a line of script in TRIGGER for transition " | To write a line of script in TRIGGER for transition " | ||
- | {{wiki: | + | {{wiki: |
IDE should navigate to //SCRIPT// tab. Since the TRIGGER for transition " | IDE should navigate to //SCRIPT// tab. Since the TRIGGER for transition " | ||
- | {{wiki: | + | {{wiki: |
Click " | Click " | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | Alternatively you can add the skeleton TRIGGER script for the transition by pressing Ctrl-I while your cursor is placed on a blank line in //SCRIPT// tab and select transition " | ||
{{wiki: | {{wiki: | ||
+ | |||
+ | |||
TRIGGER script is just a //groovy// function, go ahead and add two lines of scripts as show below: | TRIGGER script is just a //groovy// function, go ahead and add two lines of scripts as show below: | ||
- | {{wiki: | + | {{wiki: |
- | The " | ||
- | Save the changes and run the model again, | + | The " |
- | {{wiki: | + | Save the changes and run the model again. Examine //Script Log// (click on the script log button |
Below is the first few lines from the script log: | Below is the first few lines from the script log: |