Sequence Functions

In your graphs you are also using sequences. You can use them in CTL by specifying ID of the sequence and placing it as an argument in the sequence() function.

[Warning]Warning

Remember that you should not use the functions shown below in the init(), preExecute(), or postExecute() functions of CTL template.

You have three options depending on what you want to do with the sequence. You can get the current number of the sequence, or get the next number of the sequence, or you may want to reset the sequence numbers to the initial number value.

See the mentioned following three options:

Although these expressions return integer values, you may also want to get long or string values. This can be done in one of the following ways: