Class: CPEE::Transformation::Service::ExtractEndpoints
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Transformation::Service::ExtractEndpoints
- Defined in:
- lib/cpee/transformation/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/cpee/transformation/implementation.rb', line 105 def response ret = [] if @h['RIDDL_DECLARATION_PATH'].split('/')[-1] == 'bpmn2' bpmn2 = CPEE::Transformation::Source::BPMN2.new(@p[0].value.read) bpmn2.endpoints.each do |k,v| ret << Riddl::Parameter::Simple.new("name",k) ret << Riddl::Parameter::Simple.new("value",v) end end ret end |