Creating a new research project#
New research project is created by sending a project:start message to Tutkimusmoniviestin. Tutkimusmoniviestin responds with either project-completed or project-error message. Only one project can be created per Vasara process. For every project:start message, there should always be either project-completed message, project-error message with invalidFormat error code, or project-cancelled message. Otherwise the project creation doesn’t stop properly.
Create new research project#
Message sent from Vasara to Tutkimusmoniviestin to create a new research project.
| properties | |||
| 
 | Vasara:OSC:MVRE:project:start | ||
| 
 | properties | ||
| 
 | Project title | ||
| type | string | ||
| 
 | Project description. | ||
| type | string | ||
| 
 | Project expiration date in Camunda format. | ||
| type | string | ||
| examples | 2020-12-31T23:59:59.000+0000 | ||
| 
 | JSON list of users to add. | ||
| type | array | ||
| items | 
 | ||
user#
| properties | ||
| 
 | JYU email in short format | |
| type | string | |
| examples | erkesimerk@jyu.fi | |
| 
 | User expiration date in the project in Camunda format | |
| type | string | |
| examples | 2028-12-31T23:59:59.000+0000 | |
| 
 | Is the user a owner in the project. | |
| type | boolean | |
All users with isOwner set to true can add, edit and remove project users. They can also add and remove users from owners.
Project created successfully#
Message sent from Tutkimusmoniviestin to Vasara if the project is created successfully.
| properties | |
| 
 | MVRE:OSC:Vasara:project-completed | 
Project creation failed#
Message sent from Tutkimusmoniviestin to Vasara if the project creation fails.
| properties | |||
| 
 | MVRE:OSC:Vasara:project-error | ||
| 
 | properties | ||
| 
 | Code defining the error type | ||
| type | string | ||
| enum | invalidFormat, invalidTitle, groupExists, projectExists | ||
| 
 | Message describing the error | ||
| type | string | ||
Error code can be invalidFormat, invalidTitle, projectExists or groupExists. In case of invalidFormat error, there is problems in input parameter formatting. To retry, new project:start message should be sent with valid inputs. In all other cases, project-title message should be sent with a new title. Alternatively, in case of invalidTitle, projectExists or groupExists, project creation cand be cancelled by sending project-cancelled message.
Update invalid project title#
Message sent from Vasara to Tutkimusmoniviestin to update invalid project title.
| properties | |||
| 
 | Vasara:OSC:MVRE:project-title-updated | ||
| 
 | properties | ||
| 
 | New project title | ||
| type | string | ||
After receiving project-error message with invalidTitle, groupExists or projectExists error code, project-title message is used to try again with a new title. Sending project-title message results either in project-completed or a new project-error message.
Cancel project creation#
Message sent from Vasara to Tutkimusmoniviestin to cancel the project creation.
| properties | |
| 
 | Vasara:OSC:MVRE:project-cancelled | 
After receiving project-error message with invalidTitle, groupExists or projectExists error code, project-cancelled message can be used to cancel the project creation.