You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
Cancel all started tasks
Description
By calling this endpoint, all the started tasks across all nodes will be reopen. Automatic tasks will also be executed.
Setting the property blueriq.processengine.cancel-started-tasks to true when running in a multi-node environment might cause problems because while the cancellation of started tasks triggered on one node is running, a specific task could be still in progress on another node and it might be reopen.
Cancel all started tasks endpoint was created in order to avoid these types of situations.
The endpoint overrules the blueriq.processengine.cancel-started-tasks property.
Usage
The following steps should be followed for using this endpoint:
- Make sure that there exists a runtime user with a role that has the permission SCHEDULER_MANAGER.
- Check that blueriq.oauth2.client-id and blueriq.oauth2.secret are defined in application.properties file. If they are missing, please define them.
Access Runtime Swagger Interface:
- Fill the username and the password and press Generate Token in order to obtain a new token.
- Expand scheduler.
- Expand PUT /scheduler/maintenance/tasks/cancelStarted.
- Press Try it out!
Update Application Name And Version
Description
By calling one of these endpoint, the application ids for some specific cases will be updated with new values.
Steps:
- Find all cases by current application id. If case id is specified, find the case where application id matches with the one sent in the request.
- Update application id for these cases with the new data sent in the request body.
- Get the jobs for the found cases and update them accordingly.
Request examples:
Update application name.
1.1 Update application name
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestNewProject:0.0-Trunk".Update application version
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestOldProject:0.1-Trunk".Update application id (both name and version)
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestNewProject:0.1-Trunk".- Update application id for a specific case
- Update application name
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestNewProject:0.0-Trunk".
- Update application version
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestOldProject:0.1-Trunk".
- Update application id
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestNewProject:0.1-Trunk".
- Update application name
Usage
The following steps should be followed for using this endpoint:
- Make sure that there exists a runtime user with a role that has the permission SCHEDULER_MANAGER.
- Check that blueriq.oauth2.client-id and blueriq.oauth2.secret are defined in application.properties file. If they are missing, please define them.
Access Runtime Swagger Interface:
- Fill the username and the password and press Generate Token in order to obtain a new token.
- Expand scheduler.
- Expand PUT /scheduler/maintenance/applications/{currentApplicationId}
- Specify the request parameters.
- Press Try it out!