From 16efca5d2252669080e17280508c386e2609fe84 Mon Sep 17 00:00:00 2001 From: leo-ccin2p3 Date: Fri, 17 Jan 2025 09:20:46 +0100 Subject: [PATCH] [SYNCOPE-1854] Propagate changes for user update while pending approval --- .../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 cef0968104..fc06046887 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 @@ -324,6 +324,11 @@ protected UserWorkflowResult> doUpdate( 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);