cpee-worklist 1.0.0 → 1.0.2

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: 59ae04616e62aed19b864c9e592bb02c26748121c99088713d1f4dfcce9411df
4
- data.tar.gz: d92a64bd471d4c44cdafd6a32595a3c7cc3a53bb4f7ffe596612a803fb4159c7
3
+ metadata.gz: 6713f404c79214aa4ec557ee3cf5606d47fca1fb3d7f4f64fefb352cde21fd46
4
+ data.tar.gz: 837b838cd8ae36f3ff110bae123d786ad8d35d81708184ad0bda189ec8ef4405
5
5
  SHA512:
6
- metadata.gz: af8ffc66af266196228708e7639ffa3a613b487dc57d81b9ab667368e43d382ada743917a4c95aab890489c8b8a3c5131e1958bc3486d4648600ad1143310d94
7
- data.tar.gz: 40059cbe217575aa2de00b3b49da4522d585805b397071e73adc08c5304830b11b64758b81396e75b560b1eb771ba3810c02bc3fd82b326732186869b5747626
6
+ metadata.gz: b4551fa6484b3e8b0c4344994d6ad8d09cdd53272c6f35f332640aa16a845a50a9b69c0e9d6fc835f17d09c81845ea0f1bb83ad48013bef0ff863beb756719e4
7
+ data.tar.gz: '018294928c3d1279480cf7734e33563376a493c5b8cb5abf7df0ee2685c207aa421a305c7e2f56062d65364d797c661a7f4ac4d1d52cd7f151a134b50ad56631'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-worklist"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.2"
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)"
@@ -271,7 +271,8 @@ module CPEE
271
271
  class TaskGiveBack < Riddl::Implementation #{{{
272
272
  def response
273
273
  index = @a[0].activities.index{ |c| c["id"] == @r.last }
274
- if index && (@a[0].activities[index]['user'] == @r[-3])
274
+
275
+ if index && (@a[0].activities[index]['user'].include?(@r[-3]))
275
276
  activity = @a[0].activities[index]
276
277
  activity['user'] = []
277
278
  callback_id = @a[0].activities[index]['id']
@@ -312,7 +313,7 @@ module CPEE
312
313
  index = @a[0].activities.index{ |c| c["id"] == @r.last }
313
314
  if index
314
315
  user = @p[0].value
315
- @a[0].activities[index]["user"] = user if CPEE::Worklist::User::ok?(@a[0].opts,@a[0].activities[index],user)
316
+ @a[0].activities[index]["user"] << user if CPEE::Worklist::User::ok?(@a[0].opts,@a[0].activities[index],user)
316
317
  callback_id = @a[0].activities[index]['id']
317
318
  info = CPEE::Worklist::User::info(@a[0].opts,@a[0].activities[index],user)
318
319
  @a[0].activities.serialize
data/tools/cpee-worklist CHANGED
@@ -41,6 +41,7 @@ else
41
41
  end
42
42
 
43
43
  insta = "#{curpath}/../server/"
44
+ FileUtils.mkdir(p1) rescue nil
44
45
  if !File.exist?(p1)
45
46
  FileUtils.cp_r(insta,p1)
46
47
  else
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.0
4
+ version: 1.0.2
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-06-11 00:00:00.000000000 Z
13
+ date: 2024-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl