jomarko commented on code in PR #2952:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2952#discussion_r1979635177


##########
examples/process-business-calendar/README.md:
##########
@@ -331,6 +331,77 @@ curl -X GET 
http://localhost:8080/BusinessCalendarCreditBill \
 
 ---
 
+## Custom Business Calendar Flexibility
+
+**Why Create a Custom Business Calendar?**
+
+- Custom schedules that differ from the default behavior.
+- Modify, delay, or override time calculations.
+- Implement custom business logic for when tasks should be triggered.
+
+This guide explains how to implement a custom business calendar allowing full 
flexibility.
+
+---
+
+### Creating a Custom Business Calendar
+
+- By default, calendar.properties is used to configure default business 
calendar.
+- If a custom business calendar has to be implemented, calendar.properties 
should NOT exist. Instead, add the following property to 
application.properties: 
`kogito.processes.businessCalendar=org.kie.kogito.calendar.custom.CustomCalendar`
+
+**Steps**
+
+1. **Navigate to**: 
_examples/process-business-calendar/src/main/java/org/kie/kogito/calendar/custom
 (create the org/kie/kogito/calendar/custom directory if it does not exist)_
+2. **Create a new custom business calendar class** (e.g., CustomCalendar.java).
+3. Ensure it implements the BusinessCalendar interface.The implementation 
should be a concrete class(not an interface or abstract class).
+4. Set the property 
`kogito.processes.businessCalendar=org.kie.kogito.calendar.custom.CustomCalendar`
 in application.properties to the fully qualified class name of the custom 
business calendar.
+5. Remove the calendar.properties file within src/main/resources to allow the 
CustomCalendar class to be registered instead of the default 
BusinessCalendarImpl provided out of the box.

Review Comment:
   ```suggestion
   1. **Navigate to**: 
_examples/process-business-calendar/src/main/java/org/kie/kogito/calendar/custom
 (create the org/kie/kogito/calendar/custom directory if it does not exist)_
   2. **Create a new custom business calendar class** (e.g., 
CustomCalendar.java).
   3. Ensure it implements the `BusinessCalendar` interface.The implementation 
should be a concrete class(not an interface or abstract class).
   4. Set the property 
`kogito.processes.businessCalendar=org.kie.kogito.calendar.custom.CustomCalendar`
 in application.properties to the fully qualified class name of the custom 
business calendar.
   5. Remove the `calendar.properties` file within `src/main/resources` to 
allow the `CustomCalendar` class to be registered instead of the default 
`BusinessCalendarImpl` provided out of the box.
   ```



-- 
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