Decision

These plugins enable you to add decision steps to your Workflows.

Approval Decision

This Plugin determines whether the Asset in the Workflow Context has been approved. If it has been, a true value is returned and the Workflow will follow that Transition. If it hasn't been, a false value is returned and the false Transition will be followed.

Properties:

Table 1.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context job, asset, event * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Aspect Ratio Decision

This Plugin compares the specified aspect ratio with the aspect ratio of the Asset in the Workflow Context and determines whether they match. If they match a true value is returned and the Workflow will follow that Transition. If they don't, a false value is returned and the false Transition will be followed.

The following aspect ratio types can be selected:

• Frame aspect ratio

• Display aspect ratio

• Pixel aspect ratio

Ooyala Flex has the ability to automatically recognise the technical structure of Assets.

Properties:

Table 2.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context job, asset, event * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Auto retry   Whether or not to select an automatic retry
Timeout   Whether or not to select a timeout
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Configuration:

Table 3.
Field Field Type Mandatory Multiplicity Description
Ratio to Compare single-option    
X Value integer    
Y Value integer    

Metadata Value Decision

This Plugin compares the specified Metadata Field name and value in the configuration with the same Field in the Metadata associated with the Asset in the Workflow Context and determines whether they match. If they match a true value is returned and the Workflow will follow that Transition. If they don't, a false value is returned and the false Transition will be followed.

Properties:

Table 4.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context job, asset, event * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Timeout   Whether or not to select a timeout
Auto retry   Whether or not to select an automatic retry
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Configuration:

Table 5.
Field Field Type Mandatory Multiplicity Description
Variable Name string    
Values To Be Matched Against string    

Groovy Scripted Decision

This Plugin allows for the provision of some Script to decide on a Decision path to take in a Workflow Instance.

Properties:

Table 6.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context Services, Context * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Timeout   Whether or not to select a timeout
Auto retry   Whether or not to select an automatic retry
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Properties:

Configuration:

Table 7.
Field Field Type Mandatory Multiplicity Description
Script complex   Script

Groovy Script

script 0..1 Script Content (execute() must return a boolean value)

Groovy Script File

file   Script Content (execute() must return a boolean value)
Script Imports complex   Script Imports

JAR File URL

string 1..* Jar File URL to be imported into the script.

Script Import

string 1..* Script import to use.

 

Groovy Scripted Multi-Decision Action

This Plugin allows for the provision of some Script to decide on a Decision path to take in a Workflow Instance. The Script must return true or false. This plugin makes use of the Groovy SDK. The script can return any string value which matches the name of one of the output transitions. More information about Scripting is provided in the API Guide.

Properties:

Table 8.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context Services, Context * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Timeout   Whether or not to select a timeout
Auto retry   Whether or not to select an automatic retry
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Configuration:

Table 9.
Field Field Type Mandatory Multiplicity Description
Script Complex   Script

Groovy Script

Script 0..1 Script Content (execute() must return a boolean value)

Groovy Script File

File   Script Content (execute() must return a boolean value)
Imports Complex   Imports

JAR File URL

String 0..* Script import to use

Script Imports

String 0..* Script import to use

Live Workflow Instance Exists

This Plugin checks whether there are other Workflow Instances of a specified Definition running against the current Asset in the Workflow Context. This Plugin is useful for knowing whether the Asset in the current Workflow is currently being processed in another live Workflow Instance.

Properties:

Table 10.
Field Value Explanation
Icon  
Sub-type Decision  
Classification Workflow  
Deployment Internal  
Supports Configuration  
Supports Scripting  
Scripting Context job, asset, event *  
Undo Action    
Redo Action    
Timeout   Whether or not to select a timeout
Auto retry   Whether or not to select an automatic retry
Compatibility 5.x  
Lifecycle Stable  

Configuration:

Table 11.
Field Field Type Mandatory Multiplicity Description
Workflow Definition Workflow Definition   Name of the workflow definition for checking instances

Internal Scripted Decision

This Plugin allows for the provision of some Script to decide on a Decision path to take in a Workflow Instance. The Script must return true or false.

More information about Scripting is provided in the API Guide.

Properties:

Table 12.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Scripting Context job, asset, event * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Auto retry   Whether or not to select an automatic retry
Timeout   Whether or not to select a timeout
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Configuration:

Table 13.
Field Field Type Mandatory Multiplicity Description
Script complex    
  • Groovy Script
script 0..1 Script Content (execute() must return a boolean value)
  • Groovy Script File
file 0..1 Groovy Script File (execute() must return a boolean value)

Workflow Instance State Decision

This Plugin allows you to check the state of a Workflow Instance: existing, running or completed and return true or false. It also allows you to execute a new Workflow Instance if one is not found.

The configuration options are based on two main sections:

Search Criteria: The Workflow Definition, Workflow state and Context Variable values to match against.

Launch Criteria: The Workflow to launch and any Context Variables to map from the existing Workflow Instance.

Properties:

Table 14.
Field Value Explanation
Icon Plugin icon
Sub-type Decision Sub-type of this Plugin
Classification Workflow Classification of this Plugin
Deployment Internal Whether the plugin is deployed inside Ooyala Flex or within another product
Supports Configuration Whether this Plugin supports configuration
Supports Scripting Whether configuration supports Scripting
Scripting Context job, asset, event * What Ooyala Flex Objects can be referenced from within the Scripting context. * Note the Event Object is only visible in the context of an Action running in an Event Handler.
Undo Action   The Action required to undo this Action
Redo Action   The Action required to redo this Action
Timeout   Whether or not to select a timeout
Auto retry   Whether or not to select an automatic retry
Compatibility 5.x What versions of Ooyala Flex this Plugin works for
Lifecycle Stable Maturity of this Plugin (Experimental, Unstable or Stable)

Configuration:

Table 15.
Field Field Type Mandatory Multiplicity Description
Search Criteria complex 1 Workflow Criteria used for searching
  • Workflow Definition
Workflow Definition   Specify workflow definition
  • Workflow Variable
complex 0..* Workflow Context Variable Name and Value used for searching

Name

string   Name of the variable

Value

text   Value of the variable
  • State
single-option   The state of the workflow instance(s)
  • Exclude cancelled or cancelling workflows?
boolean   Exclude workflows which are 'Cancelled' or 'Cancelling' from the search.
Launch Criteria complex 1 Options for launching a new workflow
  • Launch workflow if no results returned
boolean   Launch a new workflow for the given definition and variables (specified below) if no results are returned.
  • Launch Workflow Variable
complex 0..* Workflow context variable name and value to be passed into the new workflow

Name

string   Name of the variable

Value

text   Value of the variable

Was this article helpful?