Script

These plugins help you add scripts to your Workflows.

Internal Script

This Plugin allows for the provision of some Script that can carry out some functionality.

More information about Scripting is provided in the API Guide.

Properties:

Table 1.
Field Value Explanation
Icon Plugin icon
Sub-type Script 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 2.
Field Field Type Mandatory Multiplicity Description
Script complex    
  • Groovy Script
script 0..1 Script Content (create a method called execute())
  • Groovy Script File
file 0..1 Groovy Script File (create a method called execute())

External Script Action

Properties:

Table 3.
Field Value Explanation
Icon Plugin icon
Sub-type Script 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 4.
Field Field Type Mandatory Multiplicity Description
Class Name String   Fully qualified class name to use.
JAR File URL String 0..1 Jar File (URL) containing the external class

 

Groovy Script Action

Properties:

Table 5.
Field Value Explanation
Icon Plugin icon
Sub-type Script Sub-type of this Plugin
Classification   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 6.
Field Field Type Mandatory Multiplicity Description
Script Contents complex 1  

Groovy Script

script   Script Content (create a method called execute())

Groovy Script File

file   Groovy Script File (create a method called execute())

Script Imports

complex 0..1  

JAR File URL

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

Script Import

string 1..* Script import to use.
Requires Lock single option 1 Type of lock required on Asset

External Scripted Decision

Properties:

Table 7.
Field Value Explanation
Icon Plugin icon
Sub-type Script Sub-type of this Plugin
Classification   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 8.
Field Field Type Mandatory Multiplicity Description
Class Name string   Fully qualified class name to use.
JAR File URL string 1 Jar File (URL) containing the external class.

Remote SSH Command Line Script Action

This plugin enables you to connect onto a remote server and run a Shell command. Ooyala Flex will then monitor that for you.

Properties:

Table 9.
Field Value Explanation
Icon Plugin icon
Sub-type Script 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 10.
Field Field Type Mandatory Multiplicity Description
Remote Host String   Remote Host or IP Address
Port Integer   Remote Port
SSH User String   SSH User Name
Credentials Complex   Credentials

SSH Password

Password   SSH Password

SSH Key File

File 0..1 SSH Private Key File

File Name

String     File Name

File Path

File Path     File Path
Command String   Command to Execute
Known Hosts File Location String 0..1 Known Hosts File Location
Result Processing Complex 0..1 Result Processing

Variable Name

String   The CommandResponse Object variable name for use in the Groovy script

Groovy Script

script   Groovy Script to execute for post processing

Script Imports

Complex   Script Imports

JAR File URL

String 0..* JAR File URL can be imported into the script

Script Import

String 0..* Script Import to use

Was this article helpful?