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

{{{



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

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

Instance Method Details

#responseObject



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

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