Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit e55a71b

Browse files
committed
added a comment on current vs leading task
1 parent cb4cc6a commit e55a71b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • codex-process-data-transfer/src/main/java/de/netzwerk_universitaetsmedizin/codex/processes/data_transfer/service/translate

codex-process-data-transfer/src/main/java/de/netzwerk_universitaetsmedizin/codex/processes/data_transfer/service/translate/DownloadDataFromDic.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public void afterPropertiesSet() throws Exception
6363
@Override
6464
protected void doExecute(DelegateExecution execution) throws BpmnError, Exception
6565
{
66+
/*
67+
* need to use leading task not current task, since changes to current task variable will not survive
68+
* intermediate message catch events later in the process flow
69+
*/
6670
Task task = getLeadingTaskFromExecutionVariables();
6771
String dicIdentifierValue = task.getRequester().getIdentifier().getValue();
6872

@@ -85,6 +89,7 @@ protected void doExecute(DelegateExecution execution) throws BpmnError, Exceptio
8589
.setCode(CODESYSTEM_NUM_CODEX_DATA_TRANSFER_VALUE_ENCRYPTED_BUNDLE_SIZE);
8690
}
8791

92+
// see comment above on leading vs current task
8893
updateLeadingTaskInExecutionVariables(task);
8994
}
9095

0 commit comments

Comments
 (0)