Roles are definition of who will be responsible for task.
For a role you can configure following:
Name
Name of role to identify.
Caption
Caption of role. Captions are shown to to users and can be localized when needed.
Role Wizard
Role Script
Script that returns list of responsible persons.
Role scripts requires at least one identity to continue. If role script is not empty and does not return any identity emakin produces an error.
Example Role Scripts
Role script has a wizard to quickly build common used role definitions but can you use following example scripts if needed.
Assign to specific identity.
Id number of identity can be specified from role wizard with selecting identity option.
$Membership.Get('d3b1fe89-6873-4438-8762-164ed73a9054');
Assign by Data Model field
Assume data field has an "Employee" field which is filled by user form.
$Xml.Evaluate('Employee');
Assign Multiple Users
Using a java script array, allows assigning multiple users.
[ $Xml.Evaluate('Employee'), $Membership.Get('d3b1fe89-6873-4438-8762-164ed73a9054') ]
Alternatively you can use semicolon to specify multiple users.
$Xml.Evaluate('Employee') + ';' + 'd3b1fe89-6873-4438-8762-164ed73a9054'
Identity
Identity option is determined responsible person from the organization data.
- Search person name in to identity field and click on name.
- When person name come to screen at the same time person identity code will appear in the role script field.
Data
Data option is assigned role from any data in the process.
- Enter the data word in to data field. You will see data code in the role script field.
Find Manager
Find manager consists two option, data and previous task.
- Data option is assigned role from any data in the process. You will see data code in the role script field.
- Previous task is assigned role from previous task. You will see previous task code in the role script field.