Table of Contents
Assign Value Action
Table of Contents
The AssignValueAction assigns a specific value to the specified field, e.g., updating the copyright source with creators from Dublin Core. This requires the layer where the field is found to be assigned already, therefore combine with AssignLayerAction and/or LayerAssignedCondition.
The Business Rules are not executed in sequence. If one Business Rule assigns a Layer and another assigns the value, it may not work, as the Business Rule Engine may first try to assign the value when the Layer is not yet assigned.
Do not use this action for tags. If you try to assign a tag with this action and the tag was not found, you will get an empty value assigned, which results in a metadata validation error. For tags use Assign Tagbox Items Action.
Specific definitions
| Property | Value |
|---|---|
| kind | AssignValueAction |
| path |
The path to the field, which may be the LayerId or a real path, e.g., for Fieldsets. Check the documentation for details on accessing fields. |
| fieldId |
The ID of the field, in which the value should be inserted. |
| value |
The value for the field is provided by a value or a variable. Text with translations
Geo point
Tagbox value variable
Tagbox value id
|
| replace | Indicates whether existing values should be replaced. Note: for multi-fieldsets and relations, this setting controls whether the value is added to existing values or whether existing values are overwritten. |
Assign Layer with two text values
"actions": [
{
"kind": "AssignValueAction",
"layerId": "BasicInformation",
"defaultValues": [
{
"title": {
"en": "$myvariable$",
"de": "$myvariable$"
}
},
{
"description": {
"en": "$myothervariable$",
"de": "$myothervariable$"
}
}
]
}
],