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);