Permalink
Browse files

fixed List data type issue

  • Loading branch information...
1 parent d9dd109 commit b9247ca1e52c38197b93b0b56e9b438f4992c4da @rdulepet committed Apr 4, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 job.rb
View
5 job.rb
@@ -25,6 +25,7 @@ class Job
VALUE_BOOLEAN = "Boolean"
VALUE_ENUMERATION = "Enumeration"
VALUE_STRING = "String"
+ VALUE_LIST = "List"
attr_reader :r_script_filename, :job_id, :curr_uuid, :r_call_interface
attr_reader :job_status, :r_script_inc_filename, :doc
@@ -101,6 +102,10 @@ def fetch_params
#@r_call_interface.assign(job_params[PARAM_NAME], job_params[PARAM_VALUE].to_s)
r_script_inc_file_handle.puts "#{job_params[PARAM_NAME]} = \"#{job_params[PARAM_VALUE].to_s}\""
Global.logger.info("R_PARAMETER::#{job_params[PARAM_NAME]} = #{job_params[PARAM_VALUE]}")
+ elsif job_params[PARAM_KIND] == VALUE_LIST
+ #@r_call_interface.assign(job_params[PARAM_NAME], job_params[PARAM_VALUE].to_s)
+ r_script_inc_file_handle.puts "#{job_params[PARAM_NAME]} = \"#{job_params[PARAM_VALUE].to_s}\""
+ Global.logger.info("R_PARAMETER::#{job_params[PARAM_NAME]} = #{job_params[PARAM_VALUE]}")
elsif job_params[PARAM_KIND] == VALUE_BOOLEAN
#@r_call_interface.assign(job_params[PARAM_NAME], job_params[PARAM_VALUE].to_s)
bool_val = "TRUE"

0 comments on commit b9247ca

Please sign in to comment.