A swimlane represents a user who performs the tasks placed in the swimlane.
In the Dynamic Swimlane (defined by script) a script defines the job position of the responsible user during the execution of the process instance. You write the script on the Scripts tab and specify it in the Script field of the swimlane. The script must assign a value to a variable (type user) specified in the Variable to define/store executor field. In the graphic model such swimlanes are blue (fig. 1).
Fig. 1. The Dynamic Swimlane (defined by script) in the process graphic model.
Common Tab
Fig. 2. The Dynamic Swimlane settings. The Common tab.
Name - the swimlane name displayed in the graphic model and in the header of the settings window. By default, a swimlane name is generated by the following template: Swimlane and the swimlane sequence number in the graphic model. If necessary, you can modify the swimlane name.
Swimlane Type - Shows the selected swimlane type. Click the Change Type button to select one of the existing swimlane types.
Variable to define/store executor - Defines a user variable, which stores information about the executor of the tasks placed in this swimlane. The user variable is stored in the process context and can be used in activities and scripts. This is a required field for the dynamic swimlane.
If the variable is already defined in the process context, you can select it from the list. To view the list of the available variables click on the selection box. The Add Variable button allows you to create a new user variable that will define/store the task executor.
Script – Specifies the function that defines the executor of tasks placed in the swimlane. To add the function click the Add Script button; a new field appears in the settings window (fig. 3).
Fig. 3. The Common tab. Selecting a script.
If the existing process scripts are not suitable for defining the task executor, you can add a new script by clicking the Create button. Type a script name in the Add Script window (fig. 4), then click the Go to button. You will be redirected to the Script tab which contains all the process scripts. The Script Editor provides tools for writing scripts in C#, for example syntax highlighting, autocomplete (IntelliSense technology), links to assemblies and web services.