handlers/kinetic_assignment_record_update_v3/handler/init.rb
# Retrieves a record in the KS_RQT_Assignment form
#
# This is a required method that is automatically called by the Kinetic Task
# Engine.
#
# ==== Returns
# An Xml formatted String representing the return variable results.
Retrieves a record in the KS_RQT_Assignment form
This is a required method that is automatically called by the Kinetic Task
Engine.

Returns
An Xml formatted String representing the return variable results.
Retrieves a record in the KS_RQT_Assignment form This is a required method that is automatically called by the Kinetic Task Engine . Returns An Xml formatted String representing the return variable results .
def execute()
    entry = @@remedy_forms['KS_RQT_Assignment'].find_entries(
      :single,
      :conditions => [%|'SourceGUID' = "#{@parameters['Work Order ID']}"|],
      :fields => :all
    )
    if entry.nil?
      raise(%|An entry can't be found in KS_RQT_Assignment for (Work Order ID)="#{@parameters['Work Order ID']}"|)
    end
	entry.update_attributes!(@field_values)
    results = <<-RESULTS
    <results>
		<result name='instanceId'>#{escape(entry['instanceId'])}</result>
    </results>
    RESULTS
    puts("Results: \n#{results}") if @debug_logging_enabled
    return results
  end
def execute ( ) entry = @@remedy_forms [ 'KS_RQT_Assignment' ] . find_entries ( :single , :conditions => [ %|'SourceGUID' = "#{@parameters['Work Order ID']}"| ] , :fields => :all ) if entry . nil? raise ( %|An entry can't be found in KS_RQT_Assignment for (Work Order ID)="#{@parameters['Work Order ID']}"| ) end entry . update_attributes! ( @field_values ) results = <<-RESULTS 
    <results>
		<result name='instanceId'> #{ escape ( entry [ 'instanceId' ] ) } </result>
    </results>
     RESULTS puts ( "Results: \n#{results}" ) if @debug_logging_enabled return results end
Retrieves a record in the KS_RQT_Assignment form
This is a required method that is automatically called by the Kinetic Task
Engine.
Retrieves a record in the KS_RQT_Assignment form This is a required method that is automatically called by the Kinetic Task Engine .
# Retrieve a single entry from KS_RQT_Assignment form # Build the results xml that will be returned by this handler. # Return the results String