cpee-worklist 1.0.1 → 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: 0d4b5845fbbb37c846fa8234c8ba28de6d7f0d193625c2686ee44d6ea81eac15
4
- data.tar.gz: 8b07e9f4aa48f5eeb5bfe4b07ec8a649400e58fbbe8525c10ac7bead3b7ca929
3
+ metadata.gz: 6713f404c79214aa4ec557ee3cf5606d47fca1fb3d7f4f64fefb352cde21fd46
4
+ data.tar.gz: 837b838cd8ae36f3ff110bae123d786ad8d35d81708184ad0bda189ec8ef4405
5
5
  SHA512:
6
- metadata.gz: 39609cc388783cfca5c3cd3a9b05b220e96f755d44c24cb6aed6ec14a11049e0fece4e14aaa328fdd03c7e1877a592a3a16059a7b77d856e0f17d2c31ad3c2d3
7
- data.tar.gz: 53d844473c1cdd012fa99bb6f680cd7d1dd96041d0b2fd4b3e9ff70c885d9e6cb0eba9dfc1a9cddfeb7612b61c7524014a9c371e7851d9d246111b6d61345e51
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.1"
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
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.1
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-12 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