doru1004 opened a new issue #1579: URL: https://github.com/apache/camel-k/issues/1579
I am trying to transform a Camel route with a simple processor into a yaml version of itself. I have my processor in a different file MyProcessor.java. I have tried writing something like this: ``` - from: uri: "timer:tick" parameters: period: "1000" steps: - process: class: MyProcessor - to: "log:info" ``` But that is a guess and when I do `kamel run` it doesn't actually work: ``` [1] Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> process[Processor@0x0] <<< in route: Route(route1)[From[timer://tick?period=1000] -> [process[Pro... because of ref must be specified on: process[Processor@0x0] [1] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:393) [1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:117) [1] at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:374) [1] at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:348) [1] at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2617) [1] at org.apache.camel.support.service.BaseService.init(BaseService.java:83) [1] at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2450) [1] at org.apache.camel.support.service.BaseService.start(BaseService.java:111) [1] at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2467) [1] at org.apache.camel.k.main.ApplicationRuntime$MainAdapter.doStart(ApplicationRuntime.java:206) [1] at org.apache.camel.support.service.BaseService.start(BaseService.java:115) [1] at org.apache.camel.main.MainSupport.run(MainSupport.java:83) [1] at org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:70) [1] at org.apache.camel.k.main.Application.main(Application.java:42) [1] Caused by: java.lang.IllegalArgumentException: ref must be specified on: process[Processor@0x0] [1] at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:171) [1] at org.apache.camel.reifier.ProcessReifier.createProcessor(ProcessReifier.java:39) [1] at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:766) [1] at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:511) [1] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:391) ``` Are there any examples out there which invoke a processor as one of the steps? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org