Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Mar 8, 2024
1 parent f04c2a3 commit 3c77e19
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 @@ -60,11 +60,11 @@ private void intercept(UserTaskEvent event) {

@Override
public void beforeProcessStarted(ProcessStartedEvent event) {
intercept(event);
}

@Override
public void afterProcessStarted(ProcessStartedEvent event) {
intercept(event);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private Optional<UserTaskInstanceStateDataEvent> findUserTaskInstanceEvent(List<
}

private Optional<DataEvent<?>> findProcessInstanceEvent(List<DataEvent<?>> events, int state) {
return events.stream().filter(ProcessInstanceStateDataEvent.class::isInstance).filter(e -> ((ProcessInstanceStateEventBody) e.getData()).getState() == state).findAny();
return events.stream().filter(ProcessInstanceStateDataEvent.class::isInstance).filter(e -> ((ProcessInstanceStateEventBody) e.getData()).getEventType() == state).findAny();
}

private List<ProcessInstanceNodeEventBody> findNodeInstanceEvents(List<DataEvent<?>> events, int eventType) {
Expand Down

0 comments on commit 3c77e19

Please sign in to comment.