Skip to content

Commit

Permalink
Merge pull request #70 from medizininformatik-initiative/69-measure-r…
Browse files Browse the repository at this point in the history
…eport-is-written-to-wrong-task-resource

Get latest task which started subprocess
  • Loading branch information
EmteZogaf authored Sep 4, 2023
2 parents 72b30c2 + c4848c2 commit 087d4cf
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 087d4cf

Please sign in to comment.