Given:
An camunda event based event based process is published
When:
There is a process Instance without any variable update instance ofr the traced variable
Then:
the import execution fails with
12:21:43.276 [ThreadPoolTaskScheduler-1] ERROR o.c.o.s.i.e.m.EventProcessInstanceImportMediator - Failure during event process import.
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at org.camunda.optimize.service.events.CustomTracedCamundaEventFetcherService.lambda$correlateCamundaEvents$6(CustomTracedCamundaEventFetcherService.java:145)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:439)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
at org.camunda.optimize.service.events.CustomTracedCamundaEventFetcherService.correlateCamundaEvents(CustomTracedCamundaEventFetcherService.java:148)
at org.camunda.optimize.service.events.CustomTracedCamundaEventFetcherService.getEventsIngestedAfter(CustomTracedCamundaEventFetcherService.java:78)
at org.camunda.optimize.service.importing.eventprocess.mediator.EventProcessInstanceImportMediator.importNextPage(EventProcessInstanceImportMediator.java:61)
Expected:
The instance should get skipped
Hint:
This can be reproduced on stage for e.g. the invoice process