Call Visual Logic From Text
Allows an expression to be used to create a string of text and then “call” the Visual Logic named in that string of text. A model could have many similar Visual Logic blocks and you could use your Visual Logic to decide which block to use based on some rules.
For example:
If you had a Visual Logic block ‘Activity 1 On Exit Logic’ which contained a Local Text Variable called ‘Text_for_VL_rule_to_use’, you could then decide which rule to use for controlling routing, based on a label, and call the required rule:
SET Text_for_VL_rule_to_use = “ExitRule”+Label 1
Call Visual Logic from Text Text_for_VL_rule_to_use
Allowing you to call different Visual Logic blocks (‘ExitRule1’, ‘ExitRule2’ etc.) depending on the value of Label 1 for each Work Item exiting from Activity 1.
Parameters
- Visual Logic - Visual Logic code to call as a text string
Comments
This command is only available with Simul8 Professional.