gabriel-farache commented on code in PR #3891:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3891#discussion_r2041559574


##########
kogito-serverless-workflow/kogito-serverless-workflow-builder/src/main/java/org/kie/kogito/serverless/workflow/parser/ServerlessWorkflowParser.java:
##########
@@ -135,6 +135,10 @@ private GeneratedInfo<KogitoWorkflowProcess> 
parseProcess() {
                 .metaData(Metadata.VARIABLE, DEFAULT_WORKFLOW_VAR)
                 .variable(DEFAULT_WORKFLOW_VAR, new 
ObjectDataType(JsonNode.class), 
ObjectMapperFactory.listenerAware().createObjectNode())
                 .type(KogitoWorkflowProcess.SW_TYPE);
+
+        if (workflow.getMetadata() != null) {
+            workflow.getMetadata().forEach(factory::metaData);
+        }

Review Comment:
   Why is this needed for the headers? Or is it unrelated or related to the 
original way you were configuring whether to store the headers or not? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to