Table of Contents
Assign Tagbox Items Action
Table of Contents
The AssignTagboxItemsAction assigns a specific tagbox item to the specified tagbox field, e.g., updating copyright holders with creators from Dublin Core. This requires the layer where the field is found to already be assigned; therefore, combine with "AssignLayerAction" and/or "LayerAssignedCondition."
The Business Rules are not executed sequentially. If one Business Rule assigns a Layer and another assigns the value, this may not work, as the Business Rule Engine may first attempt to assign the value when the layer has not yet been assigned.
The AssignValueAction could also be used for tagbox values, but only for single/value tagboxes. The best practice recommendation is to use the Assign Tagbox Items action for tagboxes.
Specific definitions
| Property | Value |
|---|---|
| kind | AssignTagboxItemsAction |
| path |
The path to the field which may be the LayerId. |
| fieldId |
The ID of a tagbox field, the value should be inserted in. |
| refIds |
A list of refIds of the items that should be assigned, either as list of refIds or as variable.
|
| replace | Indicates whether existing values should be replaced. Note: for multi fieldsets and relations, this setting controls, if the value is added to the already existing values or if the existing values shall be overwritten. |
Assign Tags to a Layer from a Variable
"actions": [
{
"kind": "AssignTagboxItemsAction",
"path": "CopyrightInformation",
"fieldId": "copyrightHolder",
"refIds": "$myVariable$",
"replace": true
}
],