Unlock resource Version 4 (Java)
Action group: Orchestrator Subgroup: Resource queues
Description
The action unblocks a queue item that was previously blocked by the same robot.
- The action sends a request to unblock a resource created in the resource queue in the Orchestrator database. The resource is searched by the specified resource identifier
You can only remove a lock if the robot instance is the owner of the lock. The owner of the lock is the user or robot instance that set the lock. And different locks can have different owners. Two different launches of the same robot (2 different instances) have different owners.
- Users have more authority than robots, so they can remove/set locks regardless of who owns them.
- If the action should release a read lock, but the resource is not locked for reading, the action will not return an error, just skip working with that lock. The same is true for removing a write lock.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Identifier | The unique identifier of the resource. | Robin.String | Yes | |
Remove read lock | If the value is «true», the action will release the read lock on the resource. If the resource has been locked by a user or another robot, the action will return an error. | Robin.Boolean | true | No |
Remove write lock | If the value is «true», the action will release the write lock on the resource. If the resource has been locked by a user or another robot, the action will return an error. | Robin.Boolean | true | No |
Special conditions of use
None.
Example of use
Task
There is a resource that needs to be unlocked.
Solution
Use the "Unlock resource" action.
Implementation
- Move the "Unlock resource" action to the workspace and set its parameters.
- Specify the resource ID in the "Identifier" field.
- Set the checkbox "Remove read lock" to true to remove the blocking for reading.
- Set the checkbox "Remove write lock" to true to remove the blocking for writing.
- Click "Start" in the top panel to start the robot.
Result
The program robot completed successfully. The blockings for reading and writing are removed.
Обзор
Инструменты контента