This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push:
new d40d30d0cd [SYNCOPE-1854] Propagate changes for user update while
pending approval
d40d30d0cd is described below
commit d40d30d0cd84d4756809431eb777fccb8c749b43
Author: leo-ccin2p3 <[email protected]>
AuthorDate: Fri Jan 17 09:20:46 2025 +0100
[SYNCOPE-1854] Propagate changes for user update while pending approval
---
.../syncope/core/flowable/impl/FlowableUserWorkflowAdapter.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableUserWorkflowAdapter.java
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableUserWorkflowAdapter.java
index 8989ce0b3a..cf2074f8dc 100644
---
a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableUserWorkflowAdapter.java
+++
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableUserWorkflowAdapter.java
@@ -325,6 +325,11 @@ public class FlowableUserWorkflowAdapter extends
AbstractUserWorkflowAdapter imp
Optional.ofNullable(propByResBeforeUpdate).orElse(propByRes),
Optional.ofNullable(propByLinkedAccountBeforeUpdate).orElse(propByLinkedAccount));
+ if (inFormTask) {
+ propByRes = engine.getRuntimeService().getVariable(
+ procInstID, FlowableRuntimeUtils.PROP_BY_RESOURCE,
PropagationByResource.class);
+ }
+
Boolean propagateEnable = engine.getRuntimeService().getVariable(
procInstID, FlowableRuntimeUtils.PROPAGATE_ENABLE,
Boolean.class);
engine.getRuntimeService().removeVariable(procInstID,
FlowableRuntimeUtils.PROPAGATE_ENABLE);