You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2020/01/16 10:01:14 UTC
[syncope] branch master updated: allow flowable suspend to set user
suspension (#159)
This is an automated email from the ASF dual-hosted git repository.
mmoayyed pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new cba999f allow flowable suspend to set user suspension (#159)
cba999f is described below
commit cba999f5eba0e2fc8e8dcefca27f7a46b3493322
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Thu Jan 16 14:01:06 2020 +0400
allow flowable suspend to set user suspension (#159)
(cherry picked from commit 4d2398c54bf558db37b1fa675b693bfe9e5fc54d)
---
.../src/main/java/org/apache/syncope/core/flowable/task/Suspend.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/task/Suspend.java b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/task/Suspend.java
index 0a6a85a..399e7dc 100644
--- a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/task/Suspend.java
+++ b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/task/Suspend.java
@@ -18,6 +18,8 @@
*/
package org.apache.syncope.core.flowable.task;
+import org.apache.syncope.core.flowable.impl.FlowableRuntimeUtils;
+import org.apache.syncope.core.persistence.api.entity.user.User;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;
@@ -26,5 +28,7 @@ public class Suspend extends FlowableServiceTask {
@Override
protected void doExecute(final DelegateExecution execution) {
+ User user = execution.getVariable(FlowableRuntimeUtils.USER, User.class);
+ user.setSuspended(true);
}
}