ok I changed to that: ``` fun tryToDoNode(validEv...
# codereview
f
ok I changed to that:
Copy code
fun tryToDoNode(validEvents: List<String> = mutableListOf(),
                    node: Node, messageBody: MessageBody)
            : List<ServiceTaskResult> {
            return validEvents.map { ServiceTaskResult(it, messageBody) }
                    .onEach { 
                        if (logger.isDebugEnabled)
                        logger.debug("${this.hashCode()}: The condition is valid for node ${node.id}, sending event $it with messageBody $messageBody") 
                    }
    }