Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • parseDate

    • class : com.wedia.packaged.dam.triggers.datatransformers.impl.DateTransformer

    • init : java.lang.String the date format (cf java.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 name

    • input : none

    • output : java.lang.String the id of the root element of the tree (pointed by the property defined by init)

  • Status
    colourPurple
    titleSince 11.25
    ifElse

    • 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 else

    • output: result of if / else if / else

Warning

Prior to

Status
colourPurple
titleSince 11.28
default final else (if n is even) value was null. Starting from 11.28, default else value is the field current value (= no changes)

  • Status
    colourPurple
    titleSince 11.26
    videoAspectRatio

    • 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

...

  • Status
    colourPurple
    titleSince 11.27
    greaterThan

    • class : com.wedia.packaged.dam.triggers.datatransformers.impl.GreaterThan

    • init : java.lang.String or java.lang.Number The number to compare input with

    • input : java.lang.Integer int value to compare

    • output : true if input is strictly greater than init

  • Status
    colourPurple
    titleSince 11.27
    countCommon

    • class : com.wedia.packaged.dam.triggers.datatransformers.impl.CountCommonValues

    • init : null (default) or java.lang.Stringor JSON array of java.lang.String

    • input : String output transform or Array of String output transforms

    • output : number of common values between input and init (case sensitive)

  • Status
    colourPurple
    titleSince 11.28
    negate

    • class : com.wedia.packaged.dam.triggers.datatransformers.impl.NegationTransformer

    • init: none

    • input : any

    • output :

      • null if input is null

      • !input if input is a Boolean

      • !Boolean.parseBoolean(input.toString()) else

Trigger metadata extraction manually

...