Difference between revisions of "Setup new role"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "A role is very simply a Group with the sub-type Role. This allows you to use all of the CGScript functions on groups, imports, export, and the many other system features ther...")
(Tag: visualeditor)
 
(Tag: visualeditor)
Line 7: Line 7:
 
* "Added" - is called AFTER a user has been added to the role
 
* "Added" - is called AFTER a user has been added to the role
 
* "Removed" - is called AFTER a user has been removed from the role.
 
* "Removed" - is called AFTER a user has been removed from the role.
 
== Discovery of role extensions ==
 
Role extensions are discovered in the following order:
 
# Workflow scripts that are children of roles in parent folders with same name. I.E. if the current role is named R1, and is located in the Path \Products\Dashboard1\Company A\Dept B, then it will look for role extensions in
 
#* \Products\Dashboard1\Company A\Dept B\R1
 
#* \Products\Dashboard1\Company A\R1
 
#* \Products\Dashboard1\R1
 
#* \Products\R1
 
#* \R1
 
# Generic scripts may be defined in folders named "Role exts" in any of the parents. I.E. followng the example from above the following folders are examined:
 
#* \Products\Dashboard1\Company A\Dept B\Role exts
 
#* \Products\Dashboard1\Company A\Role exts
 
#* \Products\Dashboard1\Role exts
 
#* \Products\Role exts
 
#* \Role exts
 
# If multiple role extensions are found with the same name, then only the first one found is "discovered". But it is possible inside a role extension to call the "parent" version of the role extension.
 
 
[[Category:Roles]]
 
[[Category:Roles]]

Revision as of 09:09, 3 December 2019

A role is very simply a Group with the sub-type Role.

This allows you to use all of the CGScript functions on groups, imports, export, and the many other system features there are on groups.

Minimum requirements

In order for a role to function, it must defined a minimum of two Role extensions.

  • "Added" - is called AFTER a user has been added to the role
  • "Removed" - is called AFTER a user has been removed from the role.