cpee 1.3.107 → 1.3.108
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee.gemspec +1 -1
- data/server/handlerwrappers/default.rb +4 -7
- data/server/resources/transformation_dslx.xsl +14 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c46a89bd19fce13c4e6c2820da06ae9405fb3e4f
|
4
|
+
data.tar.gz: 87d8d8a89a1222afddce25a28e71eda6d201a1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7180af5aab98cedd7af9f27ce6e442675d00573298f0a15d6dfc048e9805bd49b2037bc7ced33d23e9c51bf80e97f5d414eb7c06c23ffdd5fc342786dd83fec
|
7
|
+
data.tar.gz: 17498fa4071644b486c16974346e4da87d307649f2dfbf5701e44ad3649a1b2f449b0c9de45bda839d268911c3e87adb91f92da342c3d2411bf0c4e8ce274bd6
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.108"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
|
@@ -29,12 +29,8 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
|
|
29
29
|
if passthrough.nil?
|
30
30
|
params = []
|
31
31
|
callback = Digest::MD5.hexdigest(Kernel::rand().to_s)
|
32
|
-
(parameters[:parameters] || {}).each do |
|
33
|
-
|
34
|
-
h.each do |k,v|
|
35
|
-
params << Riddl::Parameter::Simple.new("#{k}",CPEE::ValueHelper::generate(v))
|
36
|
-
end
|
37
|
-
end
|
32
|
+
(parameters[:parameters] || {}).each do |k,v|
|
33
|
+
params << Riddl::Parameter::Simple.new("#{k}",CPEE::ValueHelper::generate(v))
|
38
34
|
end
|
39
35
|
params << Riddl::Header.new("CPEE_BASE",@url)
|
40
36
|
params << Riddl::Header.new("CPEE_INSTANCE","#{@url}/#{@controller.id}")
|
@@ -42,6 +38,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
|
|
42
38
|
|
43
39
|
type = parameters[:method] || 'post'
|
44
40
|
client = Riddl::Client.new(@handler_endpoint)
|
41
|
+
|
45
42
|
status, result, headers = client.request type => params
|
46
43
|
raise "Could not #{parameters[:method] || 'post'} #{@handler_endpoint}" if status != 200
|
47
44
|
|
@@ -127,7 +124,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
|
|
127
124
|
def vote_sync_after # {{{
|
128
125
|
@controller.call_vote("running/syncing_after", :endpoint => @handler_endpoint, :instance => "#{@url}/#{@controller.id}", :activity => @handler_position)
|
129
126
|
end # }}}
|
130
|
-
def vote_sync_before # {{{
|
127
|
+
def vote_sync_before(parameters=nil) # {{{
|
131
128
|
@controller.call_vote("running/syncing_before", :endpoint => @handler_endpoint, :instance => "#{@url}/#{@controller.id}", :activity => @handler_position)
|
132
129
|
end # }}}
|
133
130
|
|
@@ -28,7 +28,9 @@
|
|
28
28
|
<xsl:if test="name()='call'">
|
29
29
|
<xsl:text>, :</xsl:text>
|
30
30
|
<xsl:value-of select="@endpoint"/>
|
31
|
+
<xsl:text>, { </xsl:text>
|
31
32
|
<xsl:apply-templates select="d:parameters"/>
|
33
|
+
<xsl:text> }</xsl:text>
|
32
34
|
<xsl:apply-templates select="d:manipulate" mode="part-of-call">
|
33
35
|
<xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
|
34
36
|
</xsl:apply-templates>
|
@@ -192,14 +194,21 @@
|
|
192
194
|
</xsl:template>
|
193
195
|
|
194
196
|
<xsl:template match="d:*" mode="parameter">
|
195
|
-
<xsl:
|
197
|
+
<xsl:choose>
|
198
|
+
<xsl:when test="position() = 1">
|
199
|
+
<xsl:text>:</xsl:text>
|
200
|
+
</xsl:when>
|
201
|
+
<xsl:otherwise>
|
202
|
+
<xsl:text>, :</xsl:text>
|
203
|
+
</xsl:otherwise>
|
204
|
+
</xsl:choose>
|
196
205
|
<xsl:value-of select="name()"/>
|
197
206
|
<xsl:text> => </xsl:text>
|
198
207
|
<xsl:choose>
|
199
208
|
<xsl:when test="count(*) > 0">
|
200
|
-
<xsl:text>
|
209
|
+
<xsl:text>{</xsl:text>
|
201
210
|
<xsl:apply-templates select="d:*" mode="sub-parameter"/>
|
202
|
-
<xsl:text>
|
211
|
+
<xsl:text>}</xsl:text>
|
203
212
|
</xsl:when>
|
204
213
|
<xsl:otherwise>
|
205
214
|
<xsl:choose>
|
@@ -217,11 +226,10 @@
|
|
217
226
|
</xsl:template>
|
218
227
|
|
219
228
|
<xsl:template match="d:*" mode="sub-parameter">
|
220
|
-
<xsl:text>
|
229
|
+
<xsl:text> :</xsl:text>
|
221
230
|
<xsl:value-of select="name()"/>
|
222
231
|
<xsl:text> => </xsl:text>
|
223
232
|
<xsl:value-of select="text()"/>
|
224
|
-
<xsl:text> }</xsl:text>
|
225
233
|
<xsl:choose>
|
226
234
|
<xsl:when test="generate-id(.) = generate-id(../*[last()])">
|
227
235
|
<xsl:text> </xsl:text>
|
@@ -252,7 +260,7 @@
|
|
252
260
|
</xsl:if>
|
253
261
|
</xsl:when>
|
254
262
|
<xsl:otherwise>
|
255
|
-
<xsl:text
|
263
|
+
<xsl:text>, <<-end </xsl:text>
|
256
264
|
</xsl:otherwise>
|
257
265
|
</xsl:choose>
|
258
266
|
<xsl:call-template name="print-newline"/>
|