...
parseDate
class :
com.wedia.packaged.dam.triggers.datatransformers.impl.DateTransformer
init :
java.lang.String
the date format (cfjava.text.SimpleDateFormat
)input : A transformation returning a
java.lang.String
output :
java.util.Date
the parded date or null
rootTree
class :
com.wedia.packaged.dam.triggers.datatransformers.impl.TreeRootTransformer
init :
java.lang.String
a property nameinput : none
output :
java.lang.String
the id of the root element of the tree (pointed by the property defined by init)
ifElseStatus colour Purple title Since 11.25 class :
com.wedia.packaged.dam.triggers.datatransformers.impl.IfElseTransformer
init: none
input: Array of transforms. Must be at least 2 items
Given an array of n items,
if n is even, all items in an even position are considered as conditions to perform transformation of index + 1.
If n is odd, last item is the output value treated as final elseoutput: result of if / else if / else
Warning | ||||||
---|---|---|---|---|---|---|
Prior to
null . Starting from 11.28, default else value is the field current value (= no changes) |
videoAspectRatioStatus colour Purple title Since 11.26 class :
com.wedia.packaged.dam.triggers.datatransformers.impl.RatioToVideoAspectRatioTransformer
init (optional) : JSON Object containing following properties:
threshold: (optional) Number, threshold for comparing ratio - default: 0.01
formats: Array of formats. Each format is an object with following properties:
key: The value that will be returned when the ratio is matching
ratio: The matching width / height ratio for this format (± threshold)
minRatio: Only if ratio is not defined the minimum value for this ratio (threshold will be subtracted)
maxRatio: Only if ratio is not defined the maximum value for this ratio (threshold will be added)
input : a
java.lang.Double
ratio (as what dimensionProperty with ratio init would return)output : the key of the matching ratio
...
greaterThanStatus colour Purple title Since 11.27 class :
com.wedia.packaged.dam.triggers.datatransformers.impl.GreaterThan
init :
java.lang.String
orjava.lang.Number
The number to compare input withinput :
java.lang.Integer
int value to compareoutput :
true
if input is strictly greater than init
countCommonStatus colour Purple title Since 11.27 class :
com.wedia.packaged.dam.triggers.datatransformers.impl.CountCommonValues
init :
null
(default) orjava.lang.String
or JSON array ofjava.lang.String
input : String output transform or Array of String output transforms
output : number of common values between input and init (case sensitive)
negateStatus colour Purple title Since 11.28 class :
com.wedia.packaged.dam.triggers.datatransformers.impl.NegationTransformer
init: none
input :
any
output :
null
if input isnull
!input
if input is aBoolean
!Boolean.parseBoolean(input.toString())
else
Trigger metadata extraction manually
...