Versions Compared

Key

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

Roles are definition 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 to the users, and can be localized when it is needed.

Role Wizard

Role Script

Script that returns the list of the 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.

...

Role script has a wizard to quickly build common used role definitions, but you can you 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.

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

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

Assign Multiple Users

Using a java script javascript array, it allows assigning multiple users.

...

Identity

Identity option is determined determining responsible person from the organization data. 

  • Search person name in to of a person in the identity field, and click on the name.
  • When person name come of a person comes to the screen, at the same time person identity code will appear in the role script field.

...

Data option is assigned role from any data in the process.

  • Enter the data word in to the data field. You will see a data code in the role script field.

Find Manager

Find manager consists of a two optionoptions, 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.