-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(email-connector): add document handling to the email connector #3645
base: main
Are you sure you want to change the base?
feat(email-connector): add document handling to the email connector #3645
Conversation
@@ -37,7 +42,9 @@ | |||
return new JakartaEmailActionExecutor(sessionFactory, objectMapper); | |||
} | |||
|
|||
public Object execute(EmailRequest emailRequest) { | |||
public Object execute(OutboundConnectorContext context) { |
Check notice
Code scanning / CodeQL
Missing Override annotation Note
EmailActionExecutor.execute
...ctors/email/src/test/java/io/camunda/connector/email/client/jakarta/JakartaExecutorTest.java
Fixed
Show fixed
Hide fixed
...ectors/email/src/test/java/io/camunda/connector/email/client/jakarta/PollingManagerTest.java
Fixed
Show fixed
Hide fixed
f5a96af
to
62c3256
Compare
62c3256
to
05d9cb2
Compare
email.receivedAt())); | ||
} | ||
|
||
private List<Document> createDocumentList(Email email, InboundConnectorContext connectorContext) { | ||
if (connectorContext.canActivate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shold be !canActivate
, right?
optional = true, | ||
description = "Email's attachment", | ||
binding = @TemplateProperty.PropertyBinding(name = "data.smtpAction.attachment")) | ||
Document attachment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we send only 1 attachment then?
@@ -337,4 +364,17 @@ private Optional<InternetAddress[]> createParsedInternetAddresses(Object object) | |||
"Unexpected value: " + object + ". List or String was expected"); | |||
}); | |||
} | |||
|
|||
private List<Document> createDocumentList( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a code in PollingManager that looks like this one, do we want to re this function in the PollingManager?
QA informationTest Environment
Test ScopePlease describe the test scope, happy path, edge cases that come to your mind, and whatever you think might relevant to test Test DataPlease provide the test data, if needed (files, URLs, code snippets, FEEL expressions) |
493a3ee
to
a3990dc
Compare
a3990dc
to
17fe1e8
Compare
…eature-for-email-connector
🚀 Deployment Results 🚀Please find below the results of the latest deployments.
|
Description
Add document handling feature to the email connector
Related issues
closes #3643
Checklist
no milestone
label.