Class: NotifierPlugin::BaseTaskHandlerType

Inherits:
BaseHandlerType 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 BaseHandlerType

#gen_cfg_handler_type, #generate_attr_map, #initialize

Constructor Details

This class inherits a constructor from NotifierPlugin::BaseHandlerType

Instance Method Details

#gen_cfg_handler_parameters(handler, join, attrMap, cell, adpt_gen) ⇒ Object



552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 552

def gen_cfg_handler_parameters(handler, join, attrMap, cell, adpt_gen)
  taskCell = join.get_cell
  id_attr_join = taskCell.get_join_list.get_item(:id)
  id_attr = join.get_rhs_cell.get_celltype.find(:id)
  if id_attr_join
    # セル生成時に初期化する場合
    id = id_attr_join.get_rhs.to_s
  else
    # セルタイプの初期化値を使う場合
    id = id_attr.get_initializer.to_s
  end

  # $id$等の置換
  name_array = taskCell.get_celltype.get_name_array(taskCell)
  id = taskCell.get_celltype.subst_name(id, name_array)

      return [id]
end

#might_failObject



571
572
573
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 571

def might_fail
  return true
end

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



547
548
549
550
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 547

def validate_join(handler, cell, join, *args)
  return super(handler, cell, join, *args) &&
    join && join.get_rhs_cell.get_celltype.get_name == :tTask
end