Class: CPEE::Instantiation::InstantiateXML
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Instantiation::InstantiateXML
- Includes:
- Helpers
- Defined in:
- lib/cpee-instantiation/instantiation.rb
Overview
}}}
Instance Method Summary collapse
Methods included from Helpers
#add_running_to_testset, #add_to_testset, #add_waiting_to_testset, #augment_testset, #customize_testset, #instantiate_testset
Instance Method Details
#response ⇒ Object
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/cpee-instantiation/instantiation.rb', line 220 def response cpee = @h['X_CPEE'] || @a[0] behavior = @a[1] ? 'fork_ready' : @p[0].value data = @a[1] ? 0 : 1 selfurl = @a[2] cblist = @a[3] tdoc = if @p[data].additional =~ /base64/ Base64.decode64(@p[data].value.read) else @p[data].value.read end doc = augment_testset(tdoc,@p,@h) cbk, condition = add_waiting_to_testset(behavior,@h['CPEE_CALLBACK'],doc,selfurl) add_running_to_testset(behavior,doc) instantiate_testset(cpee,doc,@p[0].value,cblist,cbk,@h['CPEE_CALLBACK'],condition) end |