Class: CPEE::Instantiation::ContinueTask
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Instantiation::ContinueTask
- Defined in:
- lib/cpee/instantiation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/cpee/instantiation.rb', line 194 def response cblist = @a[0] topic = @p[1].value event_name = @p[2].value notification = JSON.parse(@p[3].value) cb, condition, instance = cblist[@r.last] if notification['state'] == condition Riddl::Client.new(cb).put [ # TODO extract all dataelements from instance Riddl::Parameter::Simple.new('instance',instance) ] end end |