Skip to content

Commit

Permalink
Update FlowableUserWorkflowAdapter.java
Browse files Browse the repository at this point in the history
allow propagation to external resources after form validation
  • Loading branch information
leo-ccin2p3 authored Jan 16, 2025
1 parent 7216fe8 commit 3d87e8a
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 3d87e8a

Please sign in to comment.