Table of Contents
Conditions in Business Rules
Table of Contents
Some conditions apply only to Content Items, such as actions related to Permission Sets and Layers. Neither Permission Sets nor Layers can be assigned to List Items. Nonetheless, conditions are not filtered by the Trigger Point Document Type. That means that you can create a Business Rule for List Items with a Condition that checks if a Layer is assigned. Fotoware Alto will ignore these conditions, skip them, and look for valid conditions (e.g., available for List Items).
AND Condition
The AND operator can group different conditions, e.g., check for a specific layer AND a tagbox item that is assigned.
Content Permission Set Assigned Condition
The condition Content Permission Set Assigned checks whether a permission set is assigned, which grants access to specific user roles. For example, check whether the permission set "SocialMedia-AllAccess" is assigned to ensure that publication information (platform, date, tags, post) is updated.
Content Permission Sets Changed Condition
The condition Content Permission Sets Changed checks whether the Permission Set of a Content Item has changed. This does not include any change to the Permission Set itself.
Content Permission Set Unassigned Condition
The condition Content Permission Set Unassigned checks whether a permission set is unassigned, which removes access; e.g., check if the permission set "PartnerAccess" is removed to inform partners about usage restrictions for this specific content.
Content Relation Item Assigned Condition
The condition Content Relation Item Assigned checks if a specific content item or any content item has been assigned in a relationship field to another content item, e.g., check if the Press Kit has a Logo (or the correct Logo) and a Hero Shot (or the correct Hero Shot).
Content Relation Items Changed Condition
The condition Content Relation Items Changed checks whether any Content Items were removed or assigned to a specific relationship field, e.g., checking whether Press Kit material changed and triggering validation of the new material (assigning Review Layer, noting the order, and appropriate permissions).
Content Relation Item Unassigned Condition
The condition Content Relation Item Unassigned checks if a specific content item or any content item has been unassigned in a relationship field, e.g., check if the draft version of a text has been removed before making content available to the company, or check if the Press Kit Logo was removed, then unpublish the Press Kit (remove permissions).
Content Schema Condition
The condition Content Schema checks if the content schema matches a specific schema, e.g., check if for audio and video files, the permission set is assigned that gives access to the multimedia team, or check for Content Schema "Images" to find all images.
Field Value Changed Condition
The condition Field Value Change checks whether a value in a specific field changed, e.g., whether the checkbox "LegalConcerns" is checked, which may require removing the content. This does not cover any changes to the field itself.
Field Value Condition
This condition can be used for checkboxes, allowing checking whether a checkbox value is true or false, even if it is unchanged, which triggers reminders to editors when they miss checking a checkbox that approves content, a license, or gender-sensitive language, i.e., when the task is not done.
expected value: true (checkbox)
Geo Point Within Polygon Condition
The GeoPoint Within Polygon condition checks if the geoinformation inserted in Picturepark is within a defined polygon, e.g., to check if the images shot were created in Baden, or more generally, to check if images were taken (GPS data from extracted metadata) near the headquarters address (polygon) and then assign the headquarters tag to them (action assign tag).
Layer Assigned Condition
The Condition Layer Assigned checks whether a layer with a specific ID is assigned to a content item; e.g., checking whether the layer with ID "ProductInformation" is assigned to find all product-related content.
Layers Changed Condition
The condition Layers Changed checks whether the Layer has been changed. This does not include changes to the Layer itself but only to Layer changes on the Content Item.
Layer Unassigned Condition
The condition Layer Unassigned checks whether a layer is unassigned, e.g., whether an embargo layer ("LegalApprovalPending") is lifted, allowing the use and publication of the content.
Match RegEx Condition
The condition Match Regex checks the input value for a specific field against a defined regular expression (regex) pattern; e.g., whether the input is a valid email address or product code, and denies access until this information is correct. This condition also applies the Regex to the value in the provided fieldpath, and either validates the value (regex validation) or generates an output. Extract the Product Code from the filename and use it in the following transformations, e.g., apply tags for product attributes.
NOT Condition
The NOT Condition is an operator to negate a condition you define, e.g., check if Layer is not assigned (NOT LayerAssigned). Triggers when the condition is not true.
Number Compare Condition
The condition Number Compare checks if a specific metadata field contains a number that is less than, less than or equal, equal, greater, or greater than or equal to a specific value, e.g., Check weather the resolution is greater than or equal to 300 dpi to meet the website requirements before pushing content to the website (handled via separate integration).
A field value of 20 in this condition means mean value:20 and mode:equals. The Business Rule triggers this very moment, e.g., check if the amount sold is 100, then apply the discount flag. Number compare works for Geo Points but requires two conditions (number compare for lat; number compare for lon).
OR Condition
The OR operator can group multiple conditions, each of which must be fulfilled; e.g., check for a specific Layer OR a Permission Set.
String contains condition
The String Contains Condition checks whether a string (text, multiline text field) contains a specific value, e.g., so users can easily check whether a string (text, e.g., filename) contains parameters for auto-tagging.
Tagbox Item Assigned Condition
The condition Tagbox Item Assigned checks whether a specific tagbox item ("a tag") is assigned to a specific field. For example, check whether the tag "Twitter" is assigned to the field "SocialMediaPlatforms" on Layer "CopyrightUsages" to use this image on Twitter. The Business Rule checks whether the provided Tagbox Item is assigned to any Content Item and triggers it immediately; e.g., if the tag "Dealer Portal Europe" is assigned, apply the view permission for European dealers.
Tagbox Items Changed Condition
The condition Tagbox Items Changed checks for any changes to the Tagbox Items. This does not apply to changes to the tagbox field settings or changes to the List Item in the List Browser.
Tagbox Item Unassigned Condition
The condition Tagbox Item Unassigned checks if a specific tagbox item ("a tag") is unassigned in a specific field, e.g., Check if the tag "Twitter" is unassigned in the field "SocialMediaPlatforms" on Layer "CopyrightUsages" to then remove this image from Twitter. The Business Rule may check whether the tag "Dealer Portal Europe" is unassigned, and, e.g., remove the view permission for European dealers.
User in User Role Condition
User-centered conditions, such as the “User in User Roles” condition, allow you to automate processes based on actions performed by particular users or user roles, such as:
- Assign default permission when your agency uploads the content.