Open RIS project
rillsoft_project_ris_openOpens a Rillsoft Integration Server project by projectId and replaces the current project; set discardChanges:true to drop unsaved changes. Templates are refused.
Instructions
Opens a project of the logged-in client from the Rillsoft Integration Server by its projectId (see rillsoft_project_ris_list) and replaces the current project. Templates are refused (ris_template_unsupported); a local .rpj file is opened through rillsoft_project_file_open instead. With unsaved changes pending, discardChanges:true is required. Runs with the login of the desktop session and never asks for credentials. Saving goes back to the server through rillsoft_project_ris_save. No undo step - the command history starts over. Whatever the loader has to say ends up in note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | No | optimistic (the default) takes no lock and lets the server refuse a save whose version is stale (ris_conflict); pessimistic locks the project on the server for this user until another project is opened - where the lock is already held by someone else, the project opens read-only and note[] says so | optimistic |
| readOnly | No | true = open without any lock and refuse rillsoft_project_ris_save | |
| projectId | Yes | id of the project on the server, from rillsoft_project_ris_list | |
| discardChanges | No | true = discard unsaved changes of the current project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wbs | Yes | WBS code | |
| lock | Yes | lock mode of the open document | |
| name | Yes | name | |
| note | No | hints of the loader, such as a lock that was not granted; missing when there were none | |
| uuid | Yes | UUID of the element | |
| start | Yes | start, DD.MM.YYYY hh:mm | |
| finish | Yes | finish, DD.MM.YYYY hh:mm | |
| number | Yes | number of the element; unique even for split tasks | |
| clientId | Yes | id of the client the project belongs to | |
| readOnly | Yes | true = the document is read-only; rillsoft_project_ris_save refuses it | |
| projectId | Yes | id of the project on the server | |
| versionId | Yes | id of the version the document holds |