Skip to content

Commit

Permalink
[SYNCOPE-1854] Propagate changes for user update while pending approval
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-ccin2p3 authored Jan 17, 2025
1 parent b9d69b9 commit 16efca5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ protected UserWorkflowResult<Pair<UserUR, Boolean>> 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);
Expand Down

0 comments on commit 16efca5

Please sign in to comment.