Currently, when you want to execute a Dirigible JavaScript/TypeScript code, you have to add two camel steps.
One which sets parameter called resource with script file path for value and another step which calls our dedicated class org.eclipse.dirigible.components.engine.camel.invoke.Invoker.
For example:
- setProperty:
id: setProperty-5681
description: Set resource property
name: resource
expression:
simple:
id: simple-2782
expression: call-dirigible-js-two-steps/handler.ts
- to:
id: to-9e30
description: Execute JS
uri: class
parameters:
beanName: org.eclipse.dirigible.components.engine.camel.invoke.Invoker
This is not quite convenient especially in more complex Camel scenarios.
It is more complex for modeling and requires to know the name of the parameter and the class.
Research and implement our own Dirigible step so that we can execute code using simple step.
Currently, when you want to execute a Dirigible JavaScript/TypeScript code, you have to add two camel steps. One which sets parameter called
resource
with script file path for value and another step which calls our dedicated classorg.eclipse.dirigible.components.engine.camel.invoke.Invoker
. For example:This is not quite convenient especially in more complex Camel scenarios. It is more complex for modeling and requires to know the name of the parameter and the class.
Research and implement our own Dirigible step so that we can execute code using simple step.