|
@@ -27,7 +27,7 @@ require 'typhoeus'
|
|
# https://centurio.work/customers/evva/flow/?monitor=https://centurio.work/flow-test/engine/729/
|
|
# https://centurio.work/customers/evva/flow/?monitor=https://centurio.work/flow-test/engine/729/
|
|
|
|
|
|
class Get < Riddl::Implementation
|
|
class Get < Riddl::Implementation
|
|
- def response
|
|
|
|
|
|
+ def response
|
|
if @r[0] == 'test'
|
|
if @r[0] == 'test'
|
|
Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'template','test.html')))
|
|
Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'template','test.html')))
|
|
elsif @r[0] == 'menu'
|
|
elsif @r[0] == 'menu'
|
|
@@ -43,18 +43,16 @@ end
|
|
class InitFrame < Riddl::Implementation
|
|
class InitFrame < Riddl::Implementation
|
|
def response
|
|
def response
|
|
Dir.mkdir(File.join('data',@r.last)) rescue nil
|
|
Dir.mkdir(File.join('data',@r.last)) rescue nil
|
|
-
|
|
|
|
|
|
+
|
|
if @p[0].value.to_s.strip.empty?
|
|
if @p[0].value.to_s.strip.empty?
|
|
- File.write(File.join('data',@r.last,'style.url'), "../css/frames.css")
|
|
|
|
- else
|
|
|
|
File.write(File.join('data',@r.last,'style.url'),@p[0].value)
|
|
File.write(File.join('data',@r.last,'style.url'),@p[0].value)
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
File.write(File.join('data',@r.last,'frames.json'),JSON.dump(JSON.parse('{"data":[]}')))
|
|
File.write(File.join('data',@r.last,'frames.json'),JSON.dump(JSON.parse('{"data":[]}')))
|
|
-
|
|
|
|
|
|
+
|
|
#for handler
|
|
#for handler
|
|
File.write(File.join('data',@r.last,'dataelements.json'),JSON.dump(JSON.parse('{"data":[]}')))
|
|
File.write(File.join('data',@r.last,'dataelements.json'),JSON.dump(JSON.parse('{"data":[]}')))
|
|
-
|
|
|
|
|
|
+
|
|
File.write(File.join('data',@r.last,'info.json'),JSON.dump(JSON.parse('{"x_amount":' + @p[2].value + ', "y_amount":' + @p[3].value + ', "lang":"' + @p[4].value + '", "langs":["' + @p[4].value + '"]}')))
|
|
File.write(File.join('data',@r.last,'info.json'),JSON.dump(JSON.parse('{"x_amount":' + @p[2].value + ', "y_amount":' + @p[3].value + ', "lang":"' + @p[4].value + '", "langs":["' + @p[4].value + '"]}')))
|
|
|
|
|
|
File.write(File.join('data',@r.last,'callback'),@h['CPEE_CALLBACK'])
|
|
File.write(File.join('data',@r.last,'callback'),@h['CPEE_CALLBACK'])
|
|
@@ -64,13 +62,12 @@ class InitFrame < Riddl::Implementation
|
|
nil
|
|
nil
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
#def headers
|
|
#def headers
|
|
# Riddl::Header.new('CPEE-CALLBACK', 'true')
|
|
# Riddl::Header.new('CPEE-CALLBACK', 'true')
|
|
#end
|
|
#end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
#https://coderwall.com/p/atyfyq/ruby-string-to-boolean
|
|
#https://coderwall.com/p/atyfyq/ruby-string-to-boolean
|
|
#showbutton
|
|
#showbutton
|
|
class String
|
|
class String
|
|
@@ -81,27 +78,33 @@ class String
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
class NewFrameSet < Riddl::Implementation
|
|
class NewFrameSet < Riddl::Implementation
|
|
- def response
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ def response
|
|
|
|
+
|
|
|
|
+
|
|
path = File.join('data',@r.last,'frames.json')
|
|
path = File.join('data',@r.last,'frames.json')
|
|
file = File.read(path)
|
|
file = File.read(path)
|
|
data_hash = JSON::parse(file)
|
|
data_hash = JSON::parse(file)
|
|
-
|
|
|
|
|
|
+
|
|
#check if new frame overlaps others if it does, delete overlapped frames
|
|
#check if new frame overlaps others if it does, delete overlapped frames
|
|
data_hash["data"].each do | c |
|
|
data_hash["data"].each do | c |
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[1].value.to_i, @p[2].value.to_i, (@p[1].value.to_i + @p[3].value.to_i - 1), (@p[2].value.to_i + @p[4].value.to_i - 1))
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[1].value.to_i, @p[2].value.to_i, (@p[1].value.to_i + @p[3].value.to_i - 1), (@p[2].value.to_i + @p[4].value.to_i - 1))
|
|
data_hash["data"].delete(c)
|
|
data_hash["data"].delete(c)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
- urls = JSON::parse(@p[6].value);
|
|
|
|
- hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, default: JSON::parse(@p[7].value), callback: @h['CPEE_CALLBACK']};
|
|
|
|
|
|
+
|
|
|
|
+ urls = JSON::parse(@p[7].value);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if @p[8].value == ""
|
|
|
|
+ hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, style: @p[6].value, default: "{}", callback: @h['CPEE_CALLBACK']};
|
|
|
|
+ else
|
|
|
|
+ hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, style: @p[6].value, default: JSON::parse(@p[8].value), callback: @h['CPEE_CALLBACK']};
|
|
|
|
+ end
|
|
|
|
+
|
|
data_hash["data"].push(hash)
|
|
data_hash["data"].push(hash)
|
|
File.write(path, JSON.dump(data_hash))
|
|
File.write(path, JSON.dump(data_hash))
|
|
-
|
|
|
|
|
|
+
|
|
#only send active url to client
|
|
#only send active url to client
|
|
infofile = File.join('data',@r.last,'info.json')
|
|
infofile = File.join('data',@r.last,'info.json')
|
|
infojson = JSON::parse(File.read(infofile))
|
|
infojson = JSON::parse(File.read(infofile))
|
|
@@ -109,36 +112,32 @@ class NewFrameSet < Riddl::Implementation
|
|
|
|
|
|
@a[0].send(JSON.dump(hash))
|
|
@a[0].send(JSON.dump(hash))
|
|
nil
|
|
nil
|
|
-
|
|
|
|
|
|
+
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class NewFrameWait < Riddl::Implementation
|
|
class NewFrameWait < Riddl::Implementation
|
|
- def response
|
|
|
|
|
|
+ def response
|
|
path = File.join('data',@r.last,'frames.json')
|
|
path = File.join('data',@r.last,'frames.json')
|
|
file = File.read(path)
|
|
file = File.read(path)
|
|
data_hash = JSON::parse(file)
|
|
data_hash = JSON::parse(file)
|
|
-
|
|
|
|
|
|
+
|
|
#check if new frame overlaps others if it does, delete overlapped frames
|
|
#check if new frame overlaps others if it does, delete overlapped frames
|
|
data_hash["data"].each do | c |
|
|
data_hash["data"].each do | c |
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[1].value.to_i, @p[2].value.to_i, (@p[1].value.to_i + @p[3].value.to_i - 1), (@p[2].value.to_i + @p[4].value.to_i - 1))
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[1].value.to_i, @p[2].value.to_i, (@p[1].value.to_i + @p[3].value.to_i - 1), (@p[2].value.to_i + @p[4].value.to_i - 1))
|
|
data_hash["data"].delete(c)
|
|
data_hash["data"].delete(c)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
- urls = JSON::parse(@p[6].value);
|
|
|
|
- if @p[7].value == ""
|
|
|
|
- puts "AAA";
|
|
|
|
- hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, default: "{}", callback: @h['CPEE_CALLBACK']};
|
|
|
|
|
|
+
|
|
|
|
+ urls = JSON::parse(@p[7].value);
|
|
|
|
+ if @p[8].value == ""
|
|
|
|
+ hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, style: @p[6].value, default: "{}", callback: @h['CPEE_CALLBACK']};
|
|
else
|
|
else
|
|
- puts "BBB";
|
|
|
|
- hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, default: JSON::parse(@p[7].value), callback: @h['CPEE_CALLBACK']};
|
|
|
|
|
|
+ hash = {lx: @p[1].value.to_i, ly: @p[2].value.to_i, rx: (@p[1].value.to_i + @p[3].value.to_i - 1), ry: (@p[2].value.to_i + @p[4].value.to_i - 1), url: urls, showbutton: @p[5].value, style: @p[6].value, default: JSON::parse(@p[8].value), callback: @h['CPEE_CALLBACK']};
|
|
end
|
|
end
|
|
data_hash["data"].push(hash)
|
|
data_hash["data"].push(hash)
|
|
File.write(path, JSON.dump(data_hash))
|
|
File.write(path, JSON.dump(data_hash))
|
|
-
|
|
|
|
|
|
+
|
|
#only send active url to client
|
|
#only send active url to client
|
|
infofile = File.join('data',@r.last,'info.json')
|
|
infofile = File.join('data',@r.last,'info.json')
|
|
infojson = JSON::parse(File.read(infofile))
|
|
infojson = JSON::parse(File.read(infofile))
|
|
@@ -152,38 +151,32 @@ class NewFrameWait < Riddl::Implementation
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
class DeleteFrame < Riddl::Implementation
|
|
class DeleteFrame < Riddl::Implementation
|
|
- def response
|
|
|
|
|
|
+ def response
|
|
path = File.join('data',@r.last,'frames.json')
|
|
path = File.join('data',@r.last,'frames.json')
|
|
file = File.read(path)
|
|
file = File.read(path)
|
|
data_hash = JSON::parse(file)
|
|
data_hash = JSON::parse(file)
|
|
-
|
|
|
|
|
|
+
|
|
data_hash["data"].each do | c |
|
|
data_hash["data"].each do | c |
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[0].value.to_i, @p[1].value.to_i, (@p[0].value.to_i + 1), (@p[1].value.to_i + 1))
|
|
if doOverlap(c['lx'], c['ly'], c['rx'], c['ry'], @p[0].value.to_i, @p[1].value.to_i, (@p[0].value.to_i + 1), (@p[1].value.to_i + 1))
|
|
data_hash["data"].delete(c)
|
|
data_hash["data"].delete(c)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
File.write(path, JSON.dump(data_hash))
|
|
File.write(path, JSON.dump(data_hash))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
-def doOverlap(l1x, l1y, r1x, r1y, l2x, l2y, r2x, r2y)
|
|
|
|
|
|
+def doOverlap(l1x, l1y, r1x, r1y, l2x, l2y, r2x, r2y)
|
|
if l1x > r2x || l2x > r1x
|
|
if l1x > r2x || l2x > r1x
|
|
return false;
|
|
return false;
|
|
end
|
|
end
|
|
if l1y > r2y || l2y > r1y
|
|
if l1y > r2y || l2y > r1y
|
|
return false;
|
|
return false;
|
|
end
|
|
end
|
|
- return true;
|
|
|
|
|
|
+ return true;
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class Delete < Riddl::Implementation
|
|
class Delete < Riddl::Implementation
|
|
def response
|
|
def response
|
|
if cbu = File.read(File.join('data',@r.last,'callback'))
|
|
if cbu = File.read(File.join('data',@r.last,'callback'))
|
|
@@ -208,22 +201,21 @@ class Delete < Riddl::Implementation
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
class GetFrames < Riddl::Implementation #{{{
|
|
class GetFrames < Riddl::Implementation #{{{
|
|
def response
|
|
def response
|
|
fname = File.join('data',@r[-2],'frames.json')
|
|
fname = File.join('data',@r[-2],'frames.json')
|
|
if File.exists? fname
|
|
if File.exists? fname
|
|
-
|
|
|
|
|
|
+
|
|
infofile = File.join('data',@r[-2],'info.json')
|
|
infofile = File.join('data',@r[-2],'info.json')
|
|
infojson = JSON::parse(File.read(infofile))
|
|
infojson = JSON::parse(File.read(infofile))
|
|
-
|
|
|
|
|
|
+
|
|
#remove not used languages
|
|
#remove not used languages
|
|
file = JSON::parse(File.read(fname))
|
|
file = JSON::parse(File.read(fname))
|
|
-
|
|
|
|
|
|
+
|
|
file["data"].each do |child|
|
|
file["data"].each do |child|
|
|
child["url"] = child["url"].find{ |h| h['lang'] == infojson["lang"]}['url']
|
|
child["url"] = child["url"].find{ |h| h['lang'] == infojson["lang"]}['url']
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
Riddl::Parameter::Complex.new('value','application/json',JSON.dump(file))
|
|
Riddl::Parameter::Complex.new('value','application/json',JSON.dump(file))
|
|
else
|
|
else
|
|
@status = 404
|
|
@status = 404
|
|
@@ -231,23 +223,22 @@ class GetFrames < Riddl::Implementation #{{{
|
|
end
|
|
end
|
|
end #}}}
|
|
end #}}}
|
|
|
|
|
|
-
|
|
|
|
class SetDataElements < Riddl::Implementation #{{{
|
|
class SetDataElements < Riddl::Implementation #{{{
|
|
- def response
|
|
|
|
|
|
+ def response
|
|
savejson = @p.map { |o| Hash[o.name, o.value] }.to_json
|
|
savejson = @p.map { |o| Hash[o.name, o.value] }.to_json
|
|
path = File.join('data',@r[0],'dataelements.json')
|
|
path = File.join('data',@r[0],'dataelements.json')
|
|
File.write(path, savejson)
|
|
File.write(path, savejson)
|
|
-
|
|
|
|
|
|
+
|
|
#puts xyz
|
|
#puts xyz
|
|
-
|
|
|
|
|
|
+
|
|
#puts JSON.pretty_generate(@p.to_json)
|
|
#puts JSON.pretty_generate(@p.to_json)
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
#puts @p.length()
|
|
#puts @p.length()
|
|
#puts @p[0].name
|
|
#puts @p[0].name
|
|
#puts @p[0].value
|
|
#puts @p[0].value
|
|
-
|
|
|
|
|
|
+
|
|
#fname = File.join('data',@r[-2],'dataelements.json')
|
|
#fname = File.join('data',@r[-2],'dataelements.json')
|
|
#if File.exists? fname
|
|
#if File.exists? fname
|
|
# Riddl::Parameter::Complex.new('value','application/json',File.read(fname))
|
|
# Riddl::Parameter::Complex.new('value','application/json',File.read(fname))
|
|
@@ -268,7 +259,6 @@ class GetDataElements < Riddl::Implementation #{{{
|
|
end
|
|
end
|
|
end #}}}
|
|
end #}}}
|
|
|
|
|
|
-
|
|
|
|
class GetInfo < Riddl::Implementation #{{{
|
|
class GetInfo < Riddl::Implementation #{{{
|
|
def response
|
|
def response
|
|
fname = File.join('data',@r[-2],'info.json')
|
|
fname = File.join('data',@r[-2],'info.json')
|
|
@@ -298,17 +288,17 @@ class SetLang < Riddl::Implementation #{{{
|
|
if File.exists? fname
|
|
if File.exists? fname
|
|
infojson = JSON::parse(File.read(fname))
|
|
infojson = JSON::parse(File.read(fname))
|
|
infojson["lang"] = @p[0].value
|
|
infojson["lang"] = @p[0].value
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
#add to langs
|
|
#add to langs
|
|
if !infojson["langs"].include?(@p[0].value)
|
|
if !infojson["langs"].include?(@p[0].value)
|
|
infojson["langs"].push(@p[0].value)
|
|
infojson["langs"].push(@p[0].value)
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
File.write(fname, JSON.dump(infojson))
|
|
File.write(fname, JSON.dump(infojson))
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
@a[0].send('reset')
|
|
@a[0].send('reset')
|
|
nil
|
|
nil
|
|
else
|
|
else
|
|
@@ -339,56 +329,46 @@ class GetCpeeInstance < Riddl::Implementation #{{{
|
|
end
|
|
end
|
|
end #}}}
|
|
end #}}}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class OutputTest < Riddl::Implementation #{{{
|
|
class OutputTest < Riddl::Implementation #{{{
|
|
def response
|
|
def response
|
|
puts "Test"
|
|
puts "Test"
|
|
end
|
|
end
|
|
end #}}}
|
|
end #}}}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class Handler < Riddl::Implementation
|
|
class Handler < Riddl::Implementation
|
|
- def response
|
|
|
|
|
|
+ def response
|
|
puts "handler"
|
|
puts "handler"
|
|
-
|
|
|
|
|
|
+
|
|
topic = @p[1].value
|
|
topic = @p[1].value
|
|
event_name = @p[2].value
|
|
event_name = @p[2].value
|
|
notification = JSON.parse(@p[3].value.read)
|
|
notification = JSON.parse(@p[3].value.read)
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
instancenr = notification['instance']
|
|
instancenr = notification['instance']
|
|
content = notification['content']
|
|
content = notification['content']
|
|
activity = content['activity']
|
|
activity = content['activity']
|
|
parameters = content['parameters']
|
|
parameters = content['parameters']
|
|
receiving = content['received']
|
|
receiving = content['received']
|
|
-
|
|
|
|
|
|
+
|
|
#puts instancenr
|
|
#puts instancenr
|
|
#puts activity
|
|
#puts activity
|
|
puts content['values']
|
|
puts content['values']
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if content['values']&.any?
|
|
if content['values']&.any?
|
|
#puts alldata['ausfuehrungen']
|
|
#puts alldata['ausfuehrungen']
|
|
puts "writing file"
|
|
puts "writing file"
|
|
path = File.join('data',@r[0],'dataelements.json')
|
|
path = File.join('data',@r[0],'dataelements.json')
|
|
File.write(path, JSON.dump(content['values']))
|
|
File.write(path, JSON.dump(content['values']))
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
@a[0].send(@r[0])
|
|
@a[0].send(@r[0])
|
|
nil
|
|
nil
|
|
-
|
|
|
|
|
|
+
|
|
nil
|
|
nil
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class SSE < Riddl::SSEImplementation #{{{
|
|
class SSE < Riddl::SSEImplementation #{{{
|
|
def onopen
|
|
def onopen
|
|
signals = @a[0]
|
|
signals = @a[0]
|
|
@@ -404,8 +384,6 @@ class SSE < Riddl::SSEImplementation #{{{
|
|
end
|
|
end
|
|
end #}}}
|
|
end #}}}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
class SSE2 < Riddl::SSEImplementation #{{{
|
|
class SSE2 < Riddl::SSEImplementation #{{{
|
|
def onopen
|
|
def onopen
|
|
signals = @a[0]
|
|
signals = @a[0]
|
|
@@ -471,27 +449,19 @@ server = Riddl::Server.new(File.join(__dir__,'/frames.xml'), :host => 'localhost
|
|
|
|
|
|
run Get, "test" if get
|
|
run Get, "test" if get
|
|
run InitFrame, opts[:signals][idx] if post 'input'
|
|
run InitFrame, opts[:signals][idx] if post 'input'
|
|
-
|
|
|
|
|
|
+
|
|
run NewFrameSet, opts[:signals][idx] if put 'sframe'
|
|
run NewFrameSet, opts[:signals][idx] if put 'sframe'
|
|
run NewFrameWait, opts[:signals][idx] if put 'wframe'
|
|
run NewFrameWait, opts[:signals][idx] if put 'wframe'
|
|
-
|
|
|
|
|
|
+
|
|
run DeleteFrame, opts[:signals][idx] if post 'deleteframe'
|
|
run DeleteFrame, opts[:signals][idx] if post 'deleteframe'
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
on resource 'handler' do
|
|
on resource 'handler' do
|
|
- run Handler, opts[:signals2]["handler"] if post
|
|
|
|
|
|
+ run Handler, opts[:signals2]["handler"] if post
|
|
on resource 'sse' do
|
|
on resource 'sse' do
|
|
run SSE2, opts[:signals2]["handler"] if sse
|
|
run SSE2, opts[:signals2]["handler"] if sse
|
|
end
|
|
end
|
|
- end
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ end
|
|
|
|
+
|
|
run Delete, opts[:signals][idx] if delete 'opa'
|
|
run Delete, opts[:signals][idx] if delete 'opa'
|
|
run Delete, opts[:signals][idx] if delete 'opb'
|
|
run Delete, opts[:signals][idx] if delete 'opb'
|
|
on resource 'sse' do
|
|
on resource 'sse' do
|
|
@@ -516,13 +486,13 @@ server = Riddl::Server.new(File.join(__dir__,'/frames.xml'), :host => 'localhost
|
|
on resource 'test' do
|
|
on resource 'test' do
|
|
run OutputTest if put
|
|
run OutputTest if put
|
|
end
|
|
end
|
|
-
|
|
|
|
|
|
+
|
|
on resource 'dataelements.json' do
|
|
on resource 'dataelements.json' do
|
|
run SetDataElements if post
|
|
run SetDataElements if post
|
|
run GetDataElements if get
|
|
run GetDataElements if get
|
|
end
|
|
end
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-end.loop!
|
|
|
|
|
|
+end.loop!
|