Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create camel custom component for Dirigible JavaScript/TypeScript execution #4400

Open
iliyan-velichkov opened this issue Oct 24, 2024 · 1 comment
Assignees

Comments

@iliyan-velichkov
Copy link
Contributor

iliyan-velichkov commented Oct 24, 2024

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:

Screenshot 2024-10-24 at 12 30 03

        - 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.

@iliyan-velichkov iliyan-velichkov self-assigned this Oct 24, 2024
@iliyan-velichkov
Copy link
Contributor Author

Implementation: #4383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant