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

@ElementTemplate annotation API enhancements #1342

Open
1 of 3 tasks
chillleader opened this issue Oct 30, 2023 · 2 comments
Open
1 of 3 tasks

@ElementTemplate annotation API enhancements #1342

chillleader opened this issue Oct 30, 2023 · 2 comments
Assignees

Comments

@chillleader
Copy link
Member

chillleader commented Oct 30, 2023

Is your feature request related to a problem? Please describe.

2 improvements are requested for the annotation-based element template generator API:

  • Allow defining custom element type (e.g. for script tasks), currently it's always bpmn:ServiceTask
  • @OutboundConnector annotation is currently unaware of the input data type (inputDataClass), unlike the @ElementTemplateannotation. It would be nice to implement this to avoid defining inputVariables manually.
  • Support generation of multiple element templates for different element types for a single connector

Describe the solution you'd like

@ElementTemplate(
    id = "aws-dynamodb-connector-aws-dynamodb",
    type = "bpmn:ScriptTask"       // optional value, defaults to service task
    name = "Generated AWS DynamoDB Connector",
    version = 1,
    description = "Generated AWS DynamoDB Connector",
    inputDataClass = AwsDynamoDbRequest.class)
@OutboundConnector(
    name = "AWS DynamoDB",
    inputDataClass = AwsDynamoDbRequest.class, // the same param can then be removed from `@ElementTemplate`
    type = "io.camunda:aws-dynamodb:1")

Describe alternatives you've considered

None

Additional context

None

@chillleader
Copy link
Member Author

Partially implemented in #1353: now it is possible to specify custom elementType and appliesTo.

@mattli2024
Copy link

@chillleader - is this still relevant? Can you review

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

No branches or pull requests

2 participants