Class: CPEE::Properties::PutExecutionHandler

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee/implementation_properties.rb

Overview

}}}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.set(id, opts, hw) ⇒ Object

{{{



332
333
334
# File 'lib/cpee/implementation_properties.rb', line 332

def self::set(id,opts,hw)
  CPEE::Persistence::set_item(id,opts,'executionhandler',:executionhandler => hw)
end

Instance Method Details

#responseObject



335
336
337
338
339
340
341
342
343
344
# File 'lib/cpee/implementation_properties.rb', line 335

def response
  id = @a[0]
  opts = @a[1]
  if opts[:statemachine].readonly? id
    @status = 423
  else
    PutExecutionHandler::set(id,opts,@p[0].value)
  end
  nil
end