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 15 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.

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'

Identity

Identity option is determining responsible person from the organization data. 

  • Search name of a person in the identity field, and click on the name.
  • When name of a person comes to the 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 the data field. You will see a data code in the role script field.

Find Manager

Find manager consists of a two options, a data and a 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 a previous task. You will see previous task code in the role script field.


  • No labels