A group of actions: None
The action searches for resources based on the specified conditions and returns all matching resources. If no required resources are found, the action waits for them to appear within the specified timeout.
Action icon
Settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Resource queue | The name of the resource queue in which to look for resources. | Robin.String | Yes | |
Tags | A collection of strings where each element is a separate resource tag. The search will be among those resources that have at least one of the listed tags. | Robin.Collection | No | |
Status | The status the resources must have. | Robin.String | Yes | |
Min. priority | The lowest priority value that the resource can have. Together with the value from the «Max. priority» is the search range by priority. | Robin.Numeric | No | |
Max. priority | The highest priority value that the resource can have. Together with the value from the «Min. priority» is the search range by priority. | Robin.Numeric | No | |
Min. date of creation | The smallest value of the creation date of the resource. Together with the value from the «Max. creation date» is the search range for creation date. | Robin.DateTime | No | |
Max. date of creation | The largest value of the creation date of the resource. Together with the value from the «Min. creation date» is the search range for creation date. | Robin.DateTime | No | |
Min. date of update | The smallest value of the last update date of the resource. Together with the value from the «Max. date of creation» is the range of the search by the date of the update. | Robin.DateTime | No | |
Max. date of update | The largest value of the last update date of the resource. Together with the value from the «Min. date of creation» is the range of the search by the date of the update. | Robin.DateTime | No | |
Sorting type | The sort type of the found resources. The action sorts the found resources before writing them to the resulting collection. | Robin.String | No | |
Deny reading | If the value is «true», the action will lock the found resources for reading and hide them in the queue. Other robots will not be able to find hidden resources when searching by condition. | Robin.Boolean | true | No |
Deny writing | If the value is «true», the action will lock the found resources for writing to other robots. | Robin.Boolean | true | No |
Finish processing | If the value is «true», the action will get the value and parameters of the resources and then change their status to «Processed». With this status, resources will be hidden for robots, even when searching by their ID. | Robin.Boolean | true | No |
Number of resources | The amount of resources the action should return. Taken into account together with the parameter «Quantity rule». | Robin.Numeric | Yes | |
Quantity rule | A rule that specifies how to interpret the value from the field «Number of resources» . If «All» is selected, the action ignores the specified number of resources and returns all matching resources. | Robin.String | Yes | |
Timeout, ms | Waiting time for the required number of resources to appear in the queue, matching the search conditions. If «-1» is specified, the action will wait indefinitely. Specified in milliseconds. | Robin.Numeric | No | |
Results | ||||
Result | A collection in which each element is a dictionary containing the data of one of the found resources: value («Value» key), identifier («Id» key), tags («Tags» key), status («Status» key), priority («Priority» key), creation date ( «CreationDate» key) and update date («UpdateDate» key). | Robin.Collection |
Обзор
Инструменты контента