cpee 2.1.99 → 2.1.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10e4035a81c82d0dbeb5b0880d7d95c8a1624064ad5dc28b97cc0ea20e7abd55
4
- data.tar.gz: 1bc56bb711d4d736c20a9abb758c717182c912e8a9ba4c03c1018a2292e9831a
3
+ metadata.gz: 143c4d716cd14f4f7c309470f1e9fe0f8dea633da3533135e122a105a05137af
4
+ data.tar.gz: 52524d9062b8c54f1d0d26b5d09301765be4246cc5439b238805eaa86a9de5e8
5
5
  SHA512:
6
- metadata.gz: 8add1a6e917a9adfd4e0b00d0c8fd04eb74587eb5b76a52ce3a57501bbd1bd00f48b3bccbe2d004b98b874b9a472bef55e2d6b9a3458d6d0db5dfcccb27f35bf
7
- data.tar.gz: 333a07148ac4d3be6c551fa0e6eb5ae6e0c5a84ba8fb70be44675964cb6430cfa7ef8e242bd19813c67e75512ffc4fee15fab5feeaddc4280eec4ec1d1692a25
6
+ metadata.gz: 1760d39d1fe15bed9a548fec3deb386d5752497a6ebc2591efda7b861f5cf810a193a8e8086ccf02f659e9148b0719136b3f9eb9b32bb011bed7fdef53af472c
7
+ data.tar.gz: '0619d08bf29f3a46c522860eadc6e118b474fcf49a369c36cf9f05df36aaaffa53de3481f00322d98cbafd1a24e4c21364fa4f90ddebac20d1250e30ddfe4c95'
@@ -120,6 +120,13 @@ function cockpit() { //{{{
120
120
  $('#dat_details').empty();
121
121
  e.stopImmediatePropagation();
122
122
  });
123
+ document.addEventListener('uidash:activate_tab', function (e) {
124
+ if (!$('#tabdetails').hasClass('inactive')) {
125
+ if (save['graph_adaptor']) {
126
+ save['graph_adaptor'].redraw();
127
+ }
128
+ }
129
+ });
123
130
 
124
131
  $.ajax({
125
132
  url: $('body').attr('current-templates'),
@@ -59,13 +59,7 @@ function WfAdaptor(theme_base,doit) { // Controller {{{
59
59
  illustrator.set_label_container(container);
60
60
  } // }}}
61
61
 
62
- // initialize
63
- this.illustrator = illustrator = new WfIllustrator(this);
64
- this.description = description = new WfDescription(this, this.illustrator);
65
-
66
- this.update = function(doit){ doit(self); };
67
-
68
- $.getScript(theme_base, function() { //{{{
62
+ function loadTheme(doit) { //{{{
69
63
  manifestation = new WFAdaptorManifestation(self);
70
64
  illustrator.compact = manifestation.compact == true ? true : false;
71
65
  illustrator.rotated_labels = manifestation.rotated_labels == true ? true : false;
@@ -191,8 +185,29 @@ function WfAdaptor(theme_base,doit) { // Controller {{{
191
185
  }
192
186
  $.when.apply($, deferreds).then(function(x) {
193
187
  doit(self);
188
+ })
189
+ } //}}}
190
+
191
+ // initialize
192
+ this.illustrator = illustrator = new WfIllustrator(this);
193
+ this.description = description = new WfDescription(this, this.illustrator);
194
+
195
+ this.update = function(doit){ doit(self); };
196
+
197
+ this.redraw = function(){
198
+ description.redraw();
199
+ }
200
+
201
+ $.getScript(self.theme_base).done(function() {
202
+ loadTheme(doit);
203
+ }).fail(function(){
204
+ // default theme
205
+ self.theme_base = 'themes/preset/theme.js';
206
+ self.theme_dir = self.theme_base.replace(/theme.js/,'');
207
+ $.getScript(self.theme_base,function() {
208
+ loadTheme(doit);
194
209
  });
195
- }); //}}}
210
+ });
196
211
  } // }}}
197
212
 
198
213
  // WfIllustrator:
@@ -912,6 +927,16 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
912
927
  illustrator.set_duration(start);
913
928
  doit(self);
914
929
  }
930
+ var redraw = this.redraw = function(){
931
+ id_counter = {};
932
+ labels = [];
933
+ let start = performance.now();
934
+ illustrator.clear();
935
+ var graph = parse(description.children('description').get(0), {'row':0,'col':0,final:false,wide:false});
936
+ illustrator.set_svg(graph);
937
+ self.set_labels(graph);
938
+ illustrator.set_duration(start);
939
+ }
915
940
  var update = this.update = function(svgid) { // {{{
916
941
  id_counter = {};
917
942
  if(update_illustrator){
@@ -222,8 +222,9 @@
222
222
  <label id="llmlabel" for="llms">Choose LLM:</label>
223
223
  <select name="llms" id="llms">
224
224
  <option value="gemini-2.0-flash" selected>gemini 2 Flash</option>
225
- <option value="gemini-2.5-flash-preview-05-20">gemini 2.5 Flash</option>
226
- <option value="gemini-2.5-pro-preview-05-06">gemini 2.5 Pro</option>
225
+ <option value="gemini-2.5-flash-lite">gemini 2.5 Flash Lite</option>
226
+ <option value="gemini-2.5-flash">gemini 2.5 Flash</option>
227
+ <option value="gemini-2.5-pro">gemini 2.5 Pro</option>
227
228
  <option value="gpt-4">gpt 4</option>
228
229
  <option value="gpt-4o">gpt 4o</option>
229
230
  <option value="gpt-4o-mini">gpt 4o mini</option>
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.99"
3
+ s.version = "2.1.100"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -117,7 +117,7 @@ module CPEE
117
117
  Dir[File.join(opts[:global_executionhandlers],'*','execution.rb')].each do |h|
118
118
  require h
119
119
  end unless opts[:global_executionhandlers].nil? || opts[:global_executionhandlers].strip == ''
120
- Dir[File.join(opts[:executionhandlers],'**','execution.rb')].each do |h|
120
+ Dir[File.join(opts[:executionhandlers],'*','execution.rb')].each do |h|
121
121
  require h
122
122
  end unless opts[:executionhandlers].nil? || opts[:executionhandlers].strip == ''
123
123
  CPEE::Message::set_workers(opts[:workers])
@@ -215,7 +215,7 @@
215
215
  </xsl:otherwise>
216
216
  </xsl:choose>
217
217
  </xsl:if>
218
- <xsl:for-each select="@*[not(name()='language' or name()='mode' or name()='condition' or name()='svg-label')]">
218
+ <xsl:for-each select="@*[not(name()='language' or name()='mode' or (local-name()='alt_id' and namespace-uri()='http://cpee.org/ns/annotation/1.0') or name()='condition' or name()='svg-label')]">
219
219
  <xsl:text>, :</xsl:text>
220
220
  <xsl:value-of select="name(.)"/>
221
221
  <xsl:text> => "</xsl:text>
@@ -215,7 +215,7 @@
215
215
  </xsl:otherwise>
216
216
  </xsl:choose>
217
217
  </xsl:if>
218
- <xsl:for-each select="@*[not(name()='language' or name()='mode' or name()='condition' or name()='svg-label')]">
218
+ <xsl:for-each select="@*[not(name()='language' or (local-name()='alt_id' and namespace-uri()='http://cpee.org/ns/annotation/1.0') or name()='mode' or name()='condition' or name()='svg-label')]">
219
219
  <xsl:text>, :</xsl:text>
220
220
  <xsl:value-of select="name(.)"/>
221
221
  <xsl:text> => "</xsl:text>
@@ -468,7 +468,21 @@
468
468
  <xsl:text>end</xsl:text>
469
469
  <xsl:call-template name="print-newline"/>
470
470
  </xsl:template>
471
+ <xsl:template name="genPath">
472
+ <xsl:param name="prevPath"/>
473
+ <xsl:variable name="currPath" select="concat('/',name(),'[',
474
+ count(preceding-sibling::*[name() = name(current())])+1,']',$prevPath)"/>
475
+ <xsl:for-each select="parent::*">
476
+ <xsl:call-template name="genPath">
477
+ <xsl:with-param name="prevPath" select="$currPath"/>
478
+ </xsl:call-template>
479
+ </xsl:for-each>
480
+ <xsl:if test="not(parent::*)">
481
+ <xsl:value-of select="$currPath"/>
482
+ </xsl:if>
483
+ </xsl:template>
471
484
  <xsl:template match="d:parameters">
485
+ <!--xsl:text>:path =&gt; "</xsl:text><xsl:call-template name="genPath"/><xsl:text>", </xsl:text-->
472
486
  <xsl:apply-templates select="d:label" mode="parameter"/>
473
487
  <xsl:apply-templates select="d:*[not(name()='label') and not(name()='color')]" mode="parameter"/>
474
488
  <xsl:if test="count(*) &gt; 0">, </xsl:if>
@@ -1 +1 @@
1
- 1586693
1
+ 2332765
@@ -1 +1 @@
1
- 1586711
1
+ 2332784
@@ -1 +1 @@
1
- 1586718
1
+ 2332790
@@ -1 +1 @@
1
- 1586734
1
+ 2332796
@@ -1 +1 @@
1
- 1586740
1
+ 2332802
@@ -1 +1 @@
1
- 1586746
1
+ 2332808
@@ -1 +1 @@
1
- 1586752
1
+ 2332814
@@ -1 +1 @@
1
- 1586758
1
+ 2332820
@@ -1 +1 @@
1
- 1586705
1
+ 2332778
@@ -1 +1 @@
1
- 1586699
1
+ 2332771
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.99
4
+ version: 2.1.100
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler