kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java [34:44]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Driver getDriver(String driverId) {
        LOGGER.info("Get Driver Information for id = {}", driverId);
        //Could call an external service, database, etc.

        //Mocking driver details
        String[] parts = driverId.split("-");
        long days = Long.parseLong(parts[0]);
        int points = Integer.parseInt(parts[1]);
        Date licenseExpiration = new Date(ZonedDateTime.now().plusDays(days).toInstant().toEpochMilli());
        return new Driver(driverId, "Arthur", "SP", "Campinas", points, 30, licenseExpiration);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java [35:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Driver getDriver(String driverId) {
        LOGGER.info("Get Driver Information for id = {}", driverId);
        //Could call an external service, database, etc.

        //Mocking driver details
        String[] parts = driverId.split("-");
        long days = Long.parseLong(parts[0]);
        int points = Integer.parseInt(parts[1]);
        Date licenseExpiration = new Date(ZonedDateTime.now().plusDays(days).toInstant().toEpochMilli());
        return new Driver(driverId, "Arthur", "SP", "Campinas", points, 30, licenseExpiration);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



