diff --git a/application-engine/pom.xml b/application-engine/pom.xml
index 002ef02af44..da5d0cd77c6 100644
--- a/application-engine/pom.xml
+++ b/application-engine/pom.xml
@@ -6,7 +6,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
application-engine
diff --git a/application-engine/src/main/groovy/com/netgrif/application/engine/petrinet/domain/dataset/logic/action/ActionDelegate.groovy b/application-engine/src/main/groovy/com/netgrif/application/engine/petrinet/domain/dataset/logic/action/ActionDelegate.groovy
index f0275b57fbf..f22cf8983a4 100644
--- a/application-engine/src/main/groovy/com/netgrif/application/engine/petrinet/domain/dataset/logic/action/ActionDelegate.groovy
+++ b/application-engine/src/main/groovy/com/netgrif/application/engine/petrinet/domain/dataset/logic/action/ActionDelegate.groovy
@@ -2427,14 +2427,11 @@ class ActionDelegate {
Map temp = [:]
return roles.collectEntries { entry ->
if (entry.value == GLOBAL_ROLE) {
- Set findGlobalRole = processRoleService.findAllByImportId(ProcessRole.GLOBAL + entry.key)
- if (findGlobalRole == null || findGlobalRole.isEmpty()) {
- return
- }
- ProcessRole role = findGlobalRole.find { it.isGlobal() }
- if (role == null) {
+ List roleList = processRoleService.findAllByImportId(ProcessRole.GLOBAL + entry.key, Pageable.ofSize(1)).getContent()
+ if (roleList.isEmpty()) {
return
}
+ ProcessRole role = roleList.getFirst()
return [(role.importId + ":" + GLOBAL_ROLE), ("$role.name (🌍 Global role)" as String)]
} else {
if (!temp.containsKey(entry.value)) {
diff --git a/nae-object-library/pom.xml b/nae-object-library/pom.xml
index 98ff04ae46c..24bf6a02470 100644
--- a/nae-object-library/pom.xml
+++ b/nae-object-library/pom.xml
@@ -7,7 +7,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
nae-object-library
diff --git a/nae-spring-core-adapter/pom.xml b/nae-spring-core-adapter/pom.xml
index 0ada0b89737..28d2c15eaab 100644
--- a/nae-spring-core-adapter/pom.xml
+++ b/nae-spring-core-adapter/pom.xml
@@ -7,7 +7,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
nae-spring-core-adapter
diff --git a/nae-user-ce/pom.xml b/nae-user-ce/pom.xml
index 749945c1a52..9d2ea018c4b 100644
--- a/nae-user-ce/pom.xml
+++ b/nae-user-ce/pom.xml
@@ -6,7 +6,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
nae-user-ce
diff --git a/nae-user-common/pom.xml b/nae-user-common/pom.xml
index 1c4f6055da6..c19da92f83e 100644
--- a/nae-user-common/pom.xml
+++ b/nae-user-common/pom.xml
@@ -6,7 +6,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
nae-user-common
diff --git a/pom.xml b/pom.xml
index c889ea0356b..8d9e904ec88 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.netgrif
application-engine-parent
- 7.0.0-RC8
+ 7.0.0-RC8.1
pom
NETGRIF Application Engine parent