2.3.1.2. Activities
The Activities tab displays the Activity Library tree which contains the Flowster Solutions activities and the System activities. When clicking over a folder, there will be displayed the number of activities it contains.
The search operation can be made by a folder or by a specific activity name.
- when searching for a folder, a list with the desired folder and its activities is displayed:
- when searching for an activity, a list with all activities that contain the search text will be displayed. The activities will be displayed under the parent folders:
Activity Management in Workflow
When a new workflow/local snippet/local workflow is created, a default Sequence root activity is added. In the root sequence activity other activities can be added from Flowster Solutions or System libraries.
Add activities to the Workflow
- search the activity in Activities panel
- drag the activity from the Activities panel to Workflow Designer panel and drop it in the desired structural place or double click on the name of the activity and the activity will be added at the end of the workflow in Workflow Designer panel
Remove activities from the Workflow
- go to Workflow Designer panel, right click on the desired activity and choose Delete option or click on the activity in Workflow Designer panel and click on the keyboard Delete button:
Activities are composed of two types of properties/parameters: Input Parameters and Output. Input parameters are filled with required data and Output section holds the activity result in one or more output parameters.
In order to edit the activity parameters, follow the next steps:
- In Workflow Designer panel, click on the activity on which you wish to edit parameters' values. The Parameters will be visible in the Properties panel:
- Edit the Display Name
- Add input value for the input parameters in the Parameters category
- Bind the output parameter to an internal variable
Quick Binding
An existing variable/global variable/argument can be bound to a property of an activity by clicking the button (Quick Binding). A list with all defined variables/global variables/arguments will be displayed:
In order to filter the list of displayed variables/arguments by matching type (e.g. if a property is of type <Int32>, only variables and arguments of the same type should be displayed in the list of variables/arguments from Quick Binding), go to Settings and set the Quick Binding Filter to ON:
Global Variables can also be bound to the activities parameters using the Quick Binding button. Only global variables that the user has permissions to are displayed in the list:
Workflow Parameters
In general terms of workflow parameters we refer to: Variables, Arguments and Expressions. Variables are used to store data within a workflow. Arguments are used to passing data IN and OUT of the workflow and Expressions are used for manipulating data inside a workflow. In Workflow Designer panel there is a custom panel for Variables, Arguments and Imports.
Variables
Variables can be defined at different scopes (sequence, flowchart etc.). Create a new variable:
- from the Variables tab: click on the “Variables” button in Workflow Designer -> Variables panel, after you have selected an activity to set the variable's scope (for example: main Sequence activity of the workflow):
- from the activity: in the text editor insert the variable name and click the + button. A new variable will be automatically created with the matching type (for example variable of type String) and will be visible in the Variables tab:
If the workflow has predefined variables, they will be visible in the Variables panel. In order to edit existent variables, click on the correspondent variable row and perform desired editing.
Arguments
Arguments are used to define workflow parameters. When designing a workflow, arguments are defined to allow data to be passed into the workflow when it is executed from Portal or third party scripts via RestAPI . Arguments are defined in the same way as Variables in Workflow Designer->Arguments panel.
If the workflow has predefined arguments, they will be visible in the Arguments panel. In order to edit existent arguments, click on the correspondent argument row and perform desired editing.