pefernan commented on code in PR #3686:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3686#discussion_r1801507030
##########
kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessCodegen.java:
##########
@@ -144,6 +147,8 @@ public static ProcessCodegen
ofCollectedResources(KogitoBuildContext context, Co
if (useSvgAddon) {
context.addContextAttribute(ContextAttributesConstants.PROCESS_AUTO_SVG_MAPPING,
processSVGMap);
}
+ resources.stream().filter(resource ->
resource.resource().getSourcePath().equals(BUSINESS_CALENDAR_PATH))
Review Comment:
Maybe store in the context the result of the filter:
```suggestion
resources.stream().filter(resource ->
resource.resource().getSourcePath().equals(BUSINESS_CALENDAR_PATH))
context.addContextAttribute(BUSINESS_CALENDAR_RESOURCE_KEY,
resources.stream().filter(resource ->
resource.resource().getSourcePath().equals(BUSINESS_CALENDAR_PATH)).findFirst().isPresent())
```
--
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]