-
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(rest): Add support for storing GraphQL/REST Connector's response as a document #3746
base: main
Are you sure you want to change the base?
feat(rest): Add support for storing GraphQL/REST Connector's response as a document #3746
Conversation
@@ -97,4 +97,8 @@ public void deleteDocument(CamundaDocumentReference reference) { | |||
public void clear() { | |||
documents.clear(); | |||
} | |||
|
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.
found it helpful for test purposes, and this is the InMemory store not a production one, I guess it's ok
* The connector is executed in the context of the cloud function. This is where the | ||
* HttpCommonRequest will be executed. | ||
*/ | ||
record SaaSCloudFunctionSideEnvironment(boolean storeResponseSelected) |
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.
maybe the Environment
part of the name is redundant, let me know
* Environment variable to check if the current execution is running in a Google Cloud Function. | ||
*/ | ||
private static final String CLOUD_FUNCTION_MARKER_VARIABLE = | ||
"CAMUNDA_CONNECTOR_HTTP_BLOCK_URL_GCP_META_DATA_INTERNAL"; |
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.
we could create another env variable dedicated to this purpose, wdyt?
14ff3f9
to
9f899d6
Compare
connectors/http/http-base/src/test/java/io/camunda/connector/http/base/HttpServiceTest.java
Dismissed
Show dismissed
Hide dismissed
connectors/http/http-base/src/test/java/io/camunda/connector/http/base/HttpServiceTest.java
Dismissed
Show dismissed
Hide dismissed
638134a
to
b9fc1e7
Compare
1df27e3
to
a8c2e84
Compare
@@ -45,7 +46,7 @@ public static class BuilderFinalStep { | |||
private String documentId; | |||
private String storeId; | |||
private String contentType; | |||
private String fileName; | |||
private String fileName = UUID.randomUUID().toString(); |
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.
Lets let the client decide on the filename and not do it here.
Description
document
fields in the response + in the process variablesRelated issues
https://github.com/camunda/team-connectors/issues/787
#3734
Checklist
no milestone
label.