-
Notifications
You must be signed in to change notification settings - Fork 207
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
business-calendar #3686
base: main
Are you sure you want to change the base?
business-calendar #3686
Conversation
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3686 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https:/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3686/1/display/redirect Test results:
Those are the test failures: org.jbpm.bpmn2.IntermediateEventTest.testEventSubprocessTimerCycleA process instance can only be started onceorg.jbpm.bpmn2.IntermediateEventTest.testTimerBoundaryEventDateISO[Process instance is not active.]Expecting value to be true but was false org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventTimerCycleWithErrorWithPersistence[Process instance is not active.]Expecting value to be true but was false org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsTimerDifferentPathsjava.lang.IllegalArgumentExceptionat java.base/java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:623) at org.kie.kogito.services.jobs.impl.InMemoryJobService.scheduleProcessJob(InMemoryJobService.java:86) at org.jbpm.process.instance.ProcessRuntimeImpl.initStartTimers(ProcessRuntimeImpl.java:127) at org.jbpm.process.instance.ProcessRuntimeImpl.(ProcessRuntimeImpl.java:112) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:38) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:25) at org.drools.kiesession.session.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:43) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.createProcessRuntime(StatefulKnowledgeSessionImpl.java:410) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:421) at org.jbpm.process.instance.InternalProcessRuntime.asKogitoProcessRuntime(InternalProcessRuntime.java:55) at org.jbpm.bpmn2.JbpmBpmn2TestCase.createKogitoProcessRuntime(JbpmBpmn2TestCase.java:118) at org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsTimerDifferentPaths(StartEventTest.java:397) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.jbpm.bpmn2.StartEventTest.testMultipleStartEventsStartOnTimerjava.lang.IllegalArgumentExceptionat java.base/java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:623) at org.kie.kogito.services.jobs.impl.InMemoryJobService.scheduleProcessJob(InMemoryJobService.java:86) at org.jbpm.process.instance.ProcessRuntimeImpl.initStartTimers(ProcessRuntimeImpl.java:127) at org.jbpm.process.instance.ProcessRuntimeImpl.(ProcessRuntimeImpl.java:112) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:38) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:25) at org.drools.kiesession.session.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:43) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.createProcessRuntime(StatefulKnowledgeSessionImpl.java:410) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:421) at org.jbpm.process.instance.InternalProcessRuntime.asKogitoProcessRuntime(InternalProcessRuntime.java:55) at org.jbpm.bpmn2.JbpmBpmn2TestCase.createKogitoProcessRuntime(JbpmBpmn2TestCase.java:118) at org.jbpm.bpmn2.StartEventTest.testMultipleStartEventsStartOnTimer(StartEventTest.java:309) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsSignalStartjava.lang.IllegalArgumentExceptionat java.base/java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:623) at org.kie.kogito.services.jobs.impl.InMemoryJobService.scheduleProcessJob(InMemoryJobService.java:86) at org.jbpm.process.instance.ProcessRuntimeImpl.initStartTimers(ProcessRuntimeImpl.java:127) at org.jbpm.process.instance.ProcessRuntimeImpl.(ProcessRuntimeImpl.java:112) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:38) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:25) at org.drools.kiesession.session.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:43) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.createProcessRuntime(StatefulKnowledgeSessionImpl.java:410) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:421) at org.jbpm.process.instance.InternalProcessRuntime.asKogitoProcessRuntime(InternalProcessRuntime.java:55) at org.jbpm.bpmn2.JbpmBpmn2TestCase.createKogitoProcessRuntime(JbpmBpmn2TestCase.java:118) at org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsSignalStart(StartEventTest.java:331) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsDifferentPathsjava.lang.IllegalArgumentExceptionat java.base/java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:623) at org.kie.kogito.services.jobs.impl.InMemoryJobService.scheduleProcessJob(InMemoryJobService.java:86) at org.jbpm.process.instance.ProcessRuntimeImpl.initStartTimers(ProcessRuntimeImpl.java:127) at org.jbpm.process.instance.ProcessRuntimeImpl.(ProcessRuntimeImpl.java:112) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:38) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:25) at org.drools.kiesession.session.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:43) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.createProcessRuntime(StatefulKnowledgeSessionImpl.java:410) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:421) at org.jbpm.process.instance.InternalProcessRuntime.asKogitoProcessRuntime(InternalProcessRuntime.java:55) at org.jbpm.bpmn2.JbpmBpmn2TestCase.createKogitoProcessRuntime(JbpmBpmn2TestCase.java:118) at org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsDifferentPaths(StartEventTest.java:364) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.jbpm.bpmn2.StartEventTest.testTimerStartDateISOCannot invoke "String.trim()" because "timeExpression" is nullorg.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsSignalDifferentPathsjava.lang.IllegalArgumentExceptionat java.base/java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:623) at org.kie.kogito.services.jobs.impl.InMemoryJobService.scheduleProcessJob(InMemoryJobService.java:86) at org.jbpm.process.instance.ProcessRuntimeImpl.initStartTimers(ProcessRuntimeImpl.java:127) at org.jbpm.process.instance.ProcessRuntimeImpl.(ProcessRuntimeImpl.java:112) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:38) at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:25) at org.drools.kiesession.session.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:43) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.createProcessRuntime(StatefulKnowledgeSessionImpl.java:410) at org.drools.kiesession.session.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:421) at org.jbpm.process.instance.InternalProcessRuntime.asKogitoProcessRuntime(InternalProcessRuntime.java:55) at org.jbpm.bpmn2.JbpmBpmn2TestCase.createKogitoProcessRuntime(JbpmBpmn2TestCase.java:118) at org.jbpm.bpmn2.StartEventTest.testMultipleEventBasedStartEventsSignalDifferentPaths(StartEventTest.java:435) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) |
7c2e7e5
to
c3e5883
Compare
jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/ProcessRuntimeImpl.java
Outdated
Show resolved
Hide resolved
c3e5883
to
7bf72d5
Compare
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.
Great PRogress @Abhitocode I'd suggested you some changes.
jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/DummyKnowledgeRuntime.java
Outdated
Show resolved
Hide resolved
...cesses/src/main/resources/class-templates/producer/BusinessCalendarProducerJavaTemplate.java
Outdated
Show resolved
Hide resolved
...sses/src/main/resources/class-templates/producer/BusinessCalendarProducerSpringTemplate.java
Show resolved
Hide resolved
...esses/src/main/resources/class-templates/producer/ProcessServiceProducerQuarkusTemplate.java
Outdated
Show resolved
Hide resolved
...ses/src/main/resources/class-templates/producer/BusinessCalendarProducerQuarkusTemplate.java
Outdated
Show resolved
Hide resolved
...sses/src/main/resources/class-templates/producer/BusinessCalendarProducerSpringTemplate.java
Outdated
Show resolved
Hide resolved
9dd2ce8
to
69dbfd8
Compare
good work @Abhitocode ... please revisit the formatting (-Dvalidate-formatting) |
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.
LGTM
80e690c
to
a4cedca
Compare
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3686 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https:/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3686/8/display/redirect Test results:
Those are the test failures: org.jbpm.process.instance.LightProcessRuntimeTest.testInstantiationCannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[1]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[2]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[3]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[4]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[5]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is null |
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.
great work @Abhitocode, I left a few comments here and there but nothing really big. I'd appreciate if you could add some tests in codegen area and maybe in flow to make sure calendars are used.
@@ -0,0 +1,5 @@ | |||
business.end.hour=17 |
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.
@Abhitocode I think this file should be removed right?
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.
Yes, added calendar.properties based on Jira requirement, will remove it if required to.
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 should only be in src/test/resources
if required for testing
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.
try (InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("calendar.properties")) {
businessCalendarConfiguration.load(is);
}
we are actually reading the properties from calendar.properties, so can we do this as loading the default properties for business calendar orelse I'l delete it.
...ses/src/main/resources/class-templates/producer/BusinessCalendarProducerQuarkusTemplate.java
Outdated
Show resolved
Hide resolved
...sses/src/main/resources/class-templates/producer/BusinessCalendarProducerSpringTemplate.java
Outdated
Show resolved
Hide resolved
jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/timer/BusinessCalendarImpl.java
Show resolved
Hide resolved
jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/DummyKnowledgeRuntime.java
Show resolved
Hide resolved
3c01e6d
to
217e9bc
Compare
...ogito-codegen-processes/src/test/java/org/kie/kogito/codegen/process/ProcessCodegenTest.java
Show resolved
Hide resolved
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3686 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https:/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3686/11/display/redirect Test results:
Those are the test failures: org.jbpm.process.instance.LightProcessRuntimeTest.testInstantiationCannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[1]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[2]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[3]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[4]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[5]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is null |
217e9bc
to
76547b8
Compare
Calendar.properties still exist only for clarification purpose, will remove it once verified with the test to be added. |
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3686 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https:/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3686/12/display/redirect Test results:
Those are the test failures: org.jbpm.process.instance.LightProcessRuntimeTest.testInstantiationCannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[1]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[2]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[3]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[4]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is nullorg.jbpm.bpmn2.ProcessFactoryTest.testBoundaryErrorEvent(String)[5]Cannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is null |
76547b8
to
c2fad7b
Compare
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u #3686 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https:/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3686/13/display/redirect Test results:
Those are the test failures: org.jbpm.process.instance.LightProcessRuntimeTest.testInstantiationCannot invoke "org.kie.kogito.Config.get(java.lang.Class)" because the return value of "org.kie.kogito.Application.config()" is null |
@@ -0,0 +1,23 @@ | |||
/* |
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.
HI @Abhitocode
Why those cloned/empty templates are needed ?
...ogito-codegen-processes/src/test/java/org/kie/kogito/codegen/process/ProcessCodegenTest.java
Show resolved
Hide resolved
jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/timer/BusinessCalendarImpl.java
Show resolved
Hide resolved
jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/timer/BusinessCalendarImpl.java
Outdated
Show resolved
Hide resolved
@@ -72,6 +75,10 @@ class DummyKnowledgeRuntime implements InternalKnowledgeRuntime, KogitoProcessRu | |||
this.processRuntime = processRuntime; | |||
this.environment = new EnvironmentImpl(); | |||
// register codegen-based node instances factories | |||
BusinessCalendar calendar = processRuntime.getApplication().config().get(ProcessConfig.class).getBusinessCalendar(); | |||
if (Objects.nonNull(calendar)) { | |||
environment.set("jbpm.business.calendar", calendar); |
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.
Not strictly related to this PR, but strings used overall codebase as identifiers, should be defined once as public static properties, somewhere, so that whenever they change (as happened for jbpm.business.calendar.properties
-> "calendar.properties"
), the code keep working.
Moreover, it is also easier to document them
jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/timer/BusinessCalendarImpl.java
Outdated
Show resolved
Hide resolved
jbpm/jbpm-flow/src/main/java/org/kie/kogito/process/impl/AbstractProcessConfig.java
Show resolved
Hide resolved
* | ||
* @return Map with the generated resources | ||
*/ | ||
public Map<String, String> generate(String... templates) { |
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.
This method is a duplication of
public Map<String, String> generate()
Please, unify them, e.g.
generate()
-> generate(producerTemplates)
(you have to adjust list -> varargs)
jbpm/jbpm-flow/src/main/java/org/kie/kogito/process/impl/AbstractProcessConfig.java
Show resolved
Hide resolved
resources.stream().filter(resource -> resource.basePath().toString().equals(BUSINESS_CALENDAR_PATH)) | ||
.findFirst().ifPresent(resource -> context.addContextAttribute(BUSINESS_CALENDAR_RESOURCE_KEY, true)); |
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.
resource.basePath()
returns the path of the application jar. The check must happen on the contents of this jar instead.
c2fad7b
to
34e32b7
Compare
No description provided.