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.

  1. 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
  2. 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.

  3. Users have more authority than robots, so they can remove/set locks regardless of who owns them.
  4. 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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
IdentifierThe unique identifier of the resource.Robin.String
Yes
Remove read lockIf 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.BooleantrueNo
Remove write lockIf 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.BooleantrueNo

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

  1. Move the "Unlock resource" action to the workspace and set its parameters.
    1. Specify the resource ID in the "Identifier" field.
    2. Set the checkbox "Remove read lock" to true to remove the blocking for reading.
    3. Set the checkbox "Remove write lock" to true to remove the blocking for writing.


  2. Click "Start" in the top panel to start the robot.

Result

The program robot completed successfully. The blockings for reading and writing are removed.

  • Нет меток