Pass the stepid along to the log EIP config so that the UI can correlate it back to a step activity.
@@ -39,8 +39,13 @@ public class LogStepHandler implements IntegrationStepHandler {
@Override
public Optional<ProcessorDefinition> handle(Step step, ProcessorDefinition route, IntegrationRouteBuilder builder, String stepIndex) {
+ if( step.getId().isPresent() ) {
+ String stepId = step.getId().get();
+ return Optional.of(route.log(LoggingLevel.INFO, (String) null, stepId, createMessage(step)));
+ } else {
return Optional.of(route.log(LoggingLevel.INFO, createMessage(step)));
}
+ }
private static String createMessage(Step l) {
