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

{{{



328
329
330
# File 'lib/cpee/implementation_properties.rb', line 328

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

Instance Method Details

#responseObject



331
332
333
334
335
336
337
338
339
340
# File 'lib/cpee/implementation_properties.rb', line 331

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