Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

Roles are definitions of who will be responsible for a task. 

For a role you can configure the following:

Name
Name of a role to identify.

Caption
Caption of a role. Captions are shown to the users, and can be localized when it is needed.

Decision Logistic


Role Wizard

Role Script

Script that returns the list of the 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 you can use the following example scripts if needed.

Assign to a specific identity.

Id number of identity can be specified from the role wizard with selecting an identity option.

$Membership.Get('d3b1fe89-6873-4438-8762-164ed73a9054');

Assign by the Data Model field

Assume that a data field has an "Employee" field which is filled by the user form.

$Xml.Evaluate('Employee');

Assign Multiple Users

Using a javascript array, it 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'

Find Manager

Using this javascript array, it is used to assign a role to the manager of the user who completed the work in the previous step.

$Membership.FindManager( $WorkItem.Previous.CompletedBy );



  • No labels