cpee-worklist 1.0.8 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a77a7170f2fcd46b9770c423d9f71534c3326f7815beced68e65689fb38ca72
4
- data.tar.gz: d6b1be26ea13097cca31f6feba56e289fe48742f7c51b9dc34bbea3e19b52bff
3
+ metadata.gz: 2f5e998b250f45900c42856943ea0ed77674b3dc1aca8a639b9292edb56c5270
4
+ data.tar.gz: '060494d5269eab17272165105056c81e93b875fe0722bc3a9a91a8edf488b342'
5
5
  SHA512:
6
- metadata.gz: 5d74ffbefc2a1258ffc95af5cdd47764390cf05eae5779598a19cc3aa4bc9062c3d0e02b808d0c868974550e35e3394898375e9e95c4180e84fb5bbd08270c82
7
- data.tar.gz: 0d89ba884cd33219f7305bc13c4b13750648bca47c274c71d83987b155db33eb7e502f6844b89cc3d49caa4e1f9dfdfaa8f48b5604dbaecea339080a3d21f5b5
6
+ metadata.gz: 4774db8305dac31b524e7a9b4256bc40ca0c39d0b599e8989ee8502cd2de6f20a07d60929774643727e5492dd393155bc876760b10990cad0e4bc89e3c511e34
7
+ data.tar.gz: 118656ce46e5859ed72efd10648986afeb5ad5cfc359a74dc1317bc6db059505ad928439769c964404361870ad9abf1bd197122ad61317e5e619fc62eb77a561
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-worklist"
3
- s.version = "1.0.8"
3
+ s.version = "1.0.10"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Worklist for the cloud process execution engine (cpee.org)"
@@ -261,7 +261,8 @@ module CPEE
261
261
  Riddl::Client.new(@a[0].activities[index]['url']).put [
262
262
  Riddl::Header.new('CPEE-UPDATE','true'),
263
263
  Riddl::Header.new('CPEE-STATUS','take'),
264
- Riddl::Header.new('CPEE-EVENT','take')
264
+ Riddl::Header.new('CPEE-EVENT','take'),
265
+ Riddl::Parameter::Simple.new('user',@r[-3])
265
266
  ]
266
267
  else
267
268
  @status = 404
@@ -282,7 +283,8 @@ module CPEE
282
283
  Riddl::Client.new(@a[0].activities[index]['url']).put [
283
284
  Riddl::Header.new('CPEE-UPDATE','true'),
284
285
  Riddl::Header.new('CPEE-STATUS','giveback'),
285
- Riddl::Header.new('CPEE-EVENT','giveback')
286
+ Riddl::Header.new('CPEE-EVENT','giveback'),
287
+ Riddl::Parameter::Simple.new('user',@r[-3])
286
288
  ]
287
289
  else
288
290
  @status = 404
@@ -322,7 +324,8 @@ module CPEE
322
324
  Riddl::Client.new(@a[0].activities[index]['url']).put [
323
325
  Riddl::Header.new('CPEE-UPDATE','true'),
324
326
  Riddl::Header.new('CPEE-STATUS','take'),
325
- Riddl::Header.new('CPEE-EVENT','take')
327
+ Riddl::Header.new('CPEE-EVENT','take'),
328
+ Riddl::Parameter::Simple.new('user',@p[0].value)
326
329
  ]
327
330
  else
328
331
  @status = 404
data/ui/js/worklist.js CHANGED
@@ -159,19 +159,27 @@ function do_work(taskid,taskidurl) { //{{{
159
159
  url: res.form,
160
160
  dataType: 'text',
161
161
  success: async (iform) => {
162
- let end = false;
162
+ let end = false;;
163
163
  let evaltext = '';
164
+ let rel = res.form.match(/.*\//)[0];
165
+
164
166
  while (!end) {
165
167
  let matches = iform.match(/<worklist-form-load>(.*?)<\/worklist-form-load>/ms);
166
168
  if (matches && matches.length > 0) {
167
169
  evaltext += matches[1];
168
170
  iform = iform.replace(matches[0],'');
169
171
  } else {
170
- let includes = iform.match(/<\/?worklist-include\s+href=(("([^"]*)")|('([^']*)'))\s*\/?\s*>/ms);
172
+ let includes = iform.match(/<\/?worklist-(relative-)?include\s+href=(("([^"]*)")|('([^']*)'))\s*\/?\s*>/ms);
171
173
  if (includes && includes.length > 0) {
174
+ let inc;
175
+ if (includes[1]) {
176
+ inc = rel + includes[4];
177
+ } else {
178
+ inc = includes[4];
179
+ }
172
180
  await $.ajax({
173
181
  type: "GET",
174
- url: includes[3],
182
+ url: inc,
175
183
  dataType: 'text',
176
184
  success: function(inctext) {
177
185
  iform = iform.replace(includes[0],inctext);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-worklist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2024-07-11 00:00:00.000000000 Z
13
+ date: 2024-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl