Class: StackMate::Output

Inherits:
Ruote::Participant
  • Object
show all
Includes:
Intrinsic, Logging
Defined in:
lib/stackmate/participants/common.rb

Instance Method Summary collapse

Methods included from Intrinsic

#fn_base64, #fn_getatt, #fn_join, #fn_lookup, #fn_map, #fn_ref, #fn_select, #intrinsic

Methods included from Logging

configure_logger_for, #logger, logger_for

Instance Method Details

#on_workitemObject



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/stackmate/participants/common.rb', line 109

def on_workitem
  #p workitem.fields.keys
  logger.debug "Entering #{workitem.participant_name} "
  outputs = workitem.fields['Outputs']
  logger.debug "In StackMate::Output.on_workitem #{outputs.inspect}"
  outputs.each do |key, val|
    v = val['Value']
    constructed_value = intrinsic(v, workitem)
    val['Value'] = constructed_value
    logger.debug "Output: key = #{key}, value = #{constructed_value} descr = #{val['Description']}"
  end

  logger.debug "Output Done"
  reply
end