Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
73:admin_jobs [2019/03/25 19:44] – emr | 73:admin_jobs [2023/06/12 12:42] – emr | ||
---|---|---|---|
Line 3: | Line 3: | ||
Some administrative jobs should be executed on a regular basis. For that purpose, administrative jobs like role assignments or data exports can be run automatically. | Some administrative jobs should be executed on a regular basis. For that purpose, administrative jobs like role assignments or data exports can be run automatically. | ||
- | Administrators can upload scripts via the '' | + | Administrators can upload scripts via the '' |
The existing Facade API can be used to navigate through the process content. For example, to assign a user named **'' | The existing Facade API can be used to navigate through the process content. For example, to assign a user named **'' | ||
- | < | + | < |
+ | var user = stages.getUserByUsername(userName); | ||
var project = stages.getProjectByPath(workspacePath); | var project = stages.getProjectByPath(workspacePath); | ||
if (user != null && project != null) { | if (user != null && project != null) { | ||
Line 22: | Line 23: | ||
Sample scripts can be downloaded here: | Sample scripts can be downloaded here: | ||
- | * [[Role assignment|]] via an Excel sheet that is managed as a file instance in a Stages process | + | * {{: |
- | * [[Data export|]] to an external SQL table | + | * {{: |
Please note, that these scripts are just samples and __need to be adjusted__ | Please note, that these scripts are just samples and __need to be adjusted__ | ||
- | |||
- | We plan to expand the API in future Stages versions to also perform other administrative tasks. | ||