Table of Contents
Conditions in Business Rules
Table of Contents
Some conditions only apply to Content Items, like 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. Picturepark will ignore these conditions, skip them, and look for valid (e.g., available for List Items) conditions.
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 if a permission set is assigned, which will give access to specific user roles e.g. Check if 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 if there have been changes made to the Permission Set of a Content Item. This does not include any change to the Permission Set itself.
Content Permission Set Unassigned Condition
The condition Content Permission Set Unassigned checks if a permission set is unassigned, which removes access e.g. Check if 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 if any Content Items were removed or assigned from a specific relationship field e.g. check if Press Kit material changed and trigger validation of the new material (assign Review Layer, note with 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 is matching 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 if a value in a specific field changed e.g. Check if the checkbox "LegalConcerns" changes which may require the removal of the content. This does not cover any changes to the field itself.
Field Value Condition
New condition that can be used for checkboxes allows checking if a checkbox value is true or false even if it is unchanged, which triggers reminders to editors when they missed checking a checkbox that approves content, license, or gender-sensitive language, i.e. when the task was 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 Aarau or more general to check if images were taken (GPS data from extracted metadata) near the headquarter address (polygon) and then assign the headquarter tag to them (action assign tag).
Layer Assigned Condition
The Condition Layer Assigned checks if a layer with a specific ID is assigned to a content item e.g. Check if layer with ID "ProductInformation" is assigned to find all product related content.
Layers Changed Condition
The condition Layers Changed checks if there has been changes made on the Layer. 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 if a layer is unassigned e.g. Check whether an embargo layer ("LegalApprovalPending") is lifted which then allows to use and publish the content.
Match RegEx Condition
The condition Match Regex checks the input value for a specific field for a pattern, defined as Regex e.g. Check if the input is a valid email address or product code and otherwise remove access until this information is correct. This condition also applies the Regex to the value in the provided fieldpath and allows to either validate the value (regex validation) or to generate an output. Extract the Product Code from the filename and use it in the following transformations to 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, less or equal, equal, greater, greater or equal to a specific value e.g. Check weather the resolution is greater or equal 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 mean value:20 and mode: equals. The Business Rule triggers this very moment e.g. check if amount sold is 100 to then e.g. apply 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 different conditions of which any must be fulfilled e.g. Check for a specific Layer OR a Permission Set.
String contains condition
The String Contains Condition checks if a string (text, multiline text field) contains a specific value e.g. so users can easily check if a string (text, e.g. filename) contains parameters to use for auto tagging.
Tagbox Item Assigned Condition
The condition Tagbox Item Assigned checks if a specific tagbox item ("a tag") is assigned in a specific field e.g. Check if the tag "Twitter" is assigned in the field "SocialMediaPlatforms" on Layer "CopyrightUsages" to then use this image on Twitter. The Business Rule checks if the provided Tagbox Item was assigned to any Content Item and triggers this very moment e.g. Check if the tag "Dealer Portal Europe" is assigned to then apply e.g. 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 if the tag "Dealer Portal Europe" was unassigned to then 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.