Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS Workflow Studio
Adding users and groups
Adding users and groups
Workflow Studio is strongly based on tasks, which in turn are always assigned to an user or a group of users. So, Workflow Studio does also need to use information about users and groups.
This can be done at the beginning of the program. The code below is an example that shows how to add users and groups to Workflow Studio.
{Add users and groups} With WorkflowStudio.UserManager do begin {Add all users} Users.Clear; Users.Add('1', 'John', 'john@domain'); Users.Add('2', 'Sarah', 'sarah@domain'); Users.Add('3', 'Scott', 'scott@domain'); Users.Add('4', 'Mario', 'mario@domain'); Users.Add('5', 'Tina', 'tina@domain'); {Add groups and specify which users belong to each group} Groups.Clear; With Groups.Add('managers') do begin UserIds.Add('1'); //John UserIds.Add('2'); //Sarah end; With Groups.Add('programmers') do begin UserIds.Add('3'); //Scott UserIds.Add('4'); //Mario UserIds.Add('5'); //Tina end; end;