Skip to content

Commit cef633e

Browse files
committed
Fixed taskId being null. For some reason, the task's execution is a child execution of the execution that set the variable. Therefore getVariableLocal() cannot find the value because it only looks for the value in the child execution's (local) variable store. GetVariable() on the other hand, does check parent executions for values so using the DSF API's variables, the child execution can find the value in the parent execution
1 parent f4f7bb4 commit cef633e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/dsf/bpe/service/ping/CheckPingTaskStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected void doExecuteWithErrorHandling(DelegateExecution delegateExecution, V
3838
Target target = variables.getTarget();
3939
String correlationKey = target.getCorrelationKey();
4040

41-
String taskId = (String) delegateExecution.getVariableLocal(ExecutionVariables.pingTaskId.name());
41+
String taskId = variables.getString(ExecutionVariables.pingTaskId.name());
4242

4343
Objects.requireNonNull(taskId);
4444
FhirWebserviceClient fhirWebserviceClient = api.getFhirWebserviceClientProvider()

0 commit comments

Comments
 (0)