Class: NotifierPlugin::ActivateTaskHandlerType

Inherits:
BaseTaskHandlerType show all
Defined in:
lib/tecsgen/plugin/NotifierPlugin.rb

Instance Attribute Summary

Attributes inherited from BaseHandlerType

#required_attributes

Instance Method Summary collapse

Methods inherited from BaseTaskHandlerType

#gen_cfg_handler_parameters, #might_fail

Methods inherited from BaseHandlerType

#gen_cfg_handler_parameters, #generate_attr_map, #initialize, #might_fail

Constructor Details

This class inherits a constructor from NotifierPlugin::BaseHandlerType

Instance Method Details

#gen_cfg_handler_type(handler) ⇒ Object



581
582
583
584
585
586
587
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 581

def gen_cfg_handler_type(handler)
  case handler
    when EVENT_HANDLER then return "TNFY_ACTTSK"
    when ERROR_HANDLER then return "TENFY_ACTTSK"
    else raise "unknown handler #{handler}"
  end
end

#validate_join(handler, cell, join, *args) ⇒ Object



576
577
578
579
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 576

def validate_join(handler, cell, join, *args)
  return super(handler, cell, join, *args) &&
    join.get_port_name == :eiActivateNotificationHandler
end