GitHub user flomickl added a comment to the discussion: How to write logs that 
will be prompt in the pipeline show logs tab?

@tenthe I see I see.
What is the best way to get the parameters from the `onInvocation` into the 
`onEvent`?

It is practical to 
1) define a  `ProcessorParams params;` in general
2) in the onInvocation do `this.params = parameters;`
3) and then use this in the onEvent like
```
      
SpMonitoringManager.INSTANCE.addErrorMessage(params.getGraph().getElementId(),
          SpLogEntry.from(System.currentTimeMillis(),
              StreamPipesErrorMessage.from(new 
SpNotSupportedGeometryException("Point Geometry is not supported"))));
```

?

GitHub link: 
https://github.com/apache/streampipes/discussions/1262#discussioncomment-5092928

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to