ISO-8601 Time Standard in Aletyx Enterprise Build of Kogito and Drools 10.1.0-aletyx
Overview
The ISO-8601 standard provides a consistent method for representing dates, times, and durations across systems. In business automation platforms like jBPM, Drools, and Kogito, proper time handling is critical for workflow execution, scheduling, and decision-making.Basic ISO-8601 Formats
Date Formats
- Complete date :
YYYY-MM-DD(e.g., 2025-03-24) - Year and month :
YYYY-MM(e.g., 2025-03) - Month and day :
-MM-DD(e.g., -03-24)
Time Formats
- With separators :
hh:mm:ss(e.g., 14:30:00) - Without separators :
hhmmss(e.g., 143000) - Partial formats :
hh:mmorhhare valid
Combined Date and Time
- Format:
<date>T<time>(e.g., 2025-03-24T14:30:00) - The
Tcharacter separates the date and time components
Durations
- Format:
P[n]Y[n]M[n]DT[n]H[n]M[n]S - Examples:
P2Y4MT3H: 2 years, 4 months, and 3 hoursPT4H20M: 4 hours and 20 minutesP3M: 3 monthsPT3M: 3 minutes
Time Intervals
- Begin/End :
2025-03-01/2025-03-31 - Begin/Duration :
2025-03-24T10:00:00/PT1H - Duration/End :
P3M/2025-03-24
Repeating Intervals
- Format:
Rn/<interval> - Examples:
R2/2025-03-24T12:00: Repeat twice, starting at noon on March 24, 2025R5/PT5M/2025-04-01: Repeat 5 times with 5-minute intervals before April 1, 2025R/PT1H30M: Repeat indefinitely every 1 hour and 30 minutes
Time in Aletyx Enterprise Build of Kogito and Drools 10.1.0-aletyx
BPMN Timer Events
BPMN processes often require timed events for scheduling activities, setting deadlines, or managing recurring tasks. In jBPM, Drools, and Kogito, ISO-8601 is used for timer definitions in BPMN elements.Timer Types in BPMN
- Date (timeDate) : Fires at a specific date and time
- Duration (timeDuration) : Fires after a specific duration has passed
- Cycle (timeCycle) : Fires repeatedly at specified intervals
Implementation in Process Definitions
Timer events can be configured in the following BPMN elements:- Timer Start Events
- Timer Intermediate Events
- Timer Boundary Events