Language Reference - FC - Procedure


Icon

Please read Language Overview - Procedures first.

The procedure may not contain other procedures, inputs, and outputs.

In addition to ordinary variables it is also possible to use workspace objects as procedure parameters provided that they only contain ordinary variables and other workspace objects with the same restriction. Procedure parameters can be assigned values both using call-by-value and call-by-reference. Workspace object parameters can only be assigned values using call-by value.

When the exit step of a procedure is activated the behavior differs depending on in which way the procedure was invoked. If the procedure was invoked from a procedure step then the transitions connected to the output port of the procedure step are enabled. When one of these fires the exit step and the procedure step are deactivated and the procedure call is terminated. If the procedure was invoked in any other way then the exit step is immediately deactivated and the procedure call is terminated.

Text Methods

Common Methods
spawn()

Context Menu