article

Paul Toone avatar image
0 Likes"
Paul Toone posted

Process Flow Variables   

Process Flow objects can have variables defined on them that can be referenced from any activity through the Universal Edit fields or through the getprocessflowvar() command.

Why Use Process Flow Variables?

Process Flow Variables allow you to present certain inputs in the Process Flow in an easy-to-use front-end. Let's say there is a certain input that may change across different instances, or perhaps across different scenarios that you want to test. Instead of requiring you or another person to dive into the internal workings of the Process Flow, you can place it in a Process Flow variable, then turn off Edit Mode so that when users want to change it, they can change it through an easy front-end interface.

Properties

The following image shows properties for Process Flow Variables:

Each of these properties will be explained in the following sections.

  • NameYou can set the name of the variable here.
  • Type This specifies the return value of this variable, which can be Any, Number, Object, Node, or String.
  • User Accessible If checked, this variable will be visible and editable to anyone. If unchecked, this variable will remain internal to this Process Flow.
  • DefinedThis defines the instancing behavior for the Process Flow Variable. If set to Global, there will be one variable for every instance of this Process Flow. Since there is only ever one instance of a General Process Flow, this option is always set to Global for General Process Flows. If set to Per Instance, each instance will have its own version of this variable. Refer to the Types of Process Flows documentation for more information on instancing.
  • Default ValueThis is where you define the code to calculate this variable.
flexsim users manualuser manuals
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1