class Mio::Model::LaunchWorkflowAction

Public Instance Methods

config_hash() click to toggle source
# File lib/mio/model/launch_workflow_action.rb, line 22
def config_hash
  {workflows: @args.workflows
  }
end
create_hash() click to toggle source
# File lib/mio/model/launch_workflow_action.rb, line 12
def create_hash
  plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.launch.DefaultLaunchWorkflowCommand'
  {name: @args.name,
   pluginClass: plugin,
   visibilityIds: @args.visibility,
   'type': 'launch',
   'runRuleExpression': ''
  }
end
validate() click to toggle source
Calls superclass method Mio::Model#validate
# File lib/mio/model/launch_workflow_action.rb, line 27
def validate
  super
  if @args.workflows.empty?
    raise Mio::Model::EmptyField, 'Field workflows to Mio::Model::LaunchWorkflowAction must contain at least one launch workflow'
  end
end