Class: CPEE::Worklist::TaskDetails
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Worklist::TaskDetails
- Defined in:
- lib/cpee-worklist/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
296 297 298 299 300 301 302 303 |
# File 'lib/cpee-worklist/implementation.rb', line 296 def response index = @a[0].activities.index{ |c| c["id"] == @r.last } if index Riddl::Parameter::Complex.new "data","application/json", JSON.generate({:collect => @a[0].activities[index].has_key?('collect') && !@a[0].activities[index]['collect'].nil?, 'url' => @a[0].activities[index]['url'], 'form' => @a[0].activities[index]['form'], 'parameters' => @a[0].activities[index]['parameters'], 'label' => @a[0].activities[index]['label']}) else @status = 404 end end |