Using functions in rules
To use a function in a rule:
1. Right-click the remaining ‘number expression’, and from the alternatives in the context menu, point to Standard functions.
This displays a listing of all the functions available in the Event Modeler that return a number as a result.
2. Choose ABS ( ‘number’ value ).
A function is selected slightly differently to other elements. If you click on the function name you will select the function itself, and can thus replace it. If you click on any of its parameters (if it has any), then you can replace just the parameter. Click the
Functions tab to display information about available functions; see
Using the Functions tab.
3. Select the ‘number expression’ parameter, and replace it with the scenario variable quantity, by choosing ‘number scenario variable’, quantity.
The condition is now complete.
There are no unfinished elements, or non-terminals, in it. No elements have quotes or are underlined.
And if you glance over at the start state in the Event Flow panel, you will notice that the name of the state is now back to regular black font.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.