Skip to content

Commit

Permalink
Get Latest Task which Started Subprocess
Browse files Browse the repository at this point in the history
Store measure report in correct single dic result task.
  • Loading branch information
EmteZogaf committed Sep 4, 2023
1 parent 72b30c2 commit c4848c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public StoreLiveResult(ProcessPluginApi api) {

@Override
protected void doExecute(DelegateExecution execution, Variables variables) {
Task task = variables.getStartTask();
Task task = variables.getLatestTask();

MeasureReport measureReport = variables.getResource(VARIABLE_MEASURE_REPORT);
addReadAccessTag(measureReport);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void setUp() {
measureReport.setIdElement(new IdType(MEASURE_REPORT_ID));

when(api.getVariables(execution)).thenReturn(variables);
when(variables.getStartTask()).thenReturn(task);
when(variables.getLatestTask()).thenReturn(task);
when(api.getTaskHelper()).thenReturn(taskHelper);
when(api.getReadAccessHelper()).thenReturn(readAccessHelper);
when(api.getFhirWebserviceClientProvider()).thenReturn(clientProvider);
Expand Down

0 comments on commit c4848c2

Please sign in to comment.