Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.  

...

Info

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.

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

Assign

...

by Data Model field

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

Code Block
languagejs
$Xml.Evaluate('Employee');

Assign Multiple Users

Using a java script array, allows assigning multiple users.

 

Code Block
languagejs
[ $Xml.Evaluate('Employee'), $Membership.Get('d3b1fe89-6873-4438-8762-164ed73a9054') ]

Alternatively you can use semicolon to specify multiple users. 

 

Code Block
languagejs
$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.

Image Added

Data

 

Find Manager