Mule Quartz - 除每月第一天外的所有工作日的 Cron

Mule Quartz - Cron for all week days except 1st day of month

cron 表达式 0 30 4 2-31 * MON-FRI * 无效,因为错误:

java.text.ParseException: Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.

但也许还有另一种方法来指定这样的 cron 表达式:

Execute every weekday except first day of month on 4:30.

是否可以使用 W 参数?

我在 MuleSoft quartz:inbound-endpoint 配置中使用 Quartz Crone 表达式。

http://www.quartz-scheduler.org/api/2.1.7/org/quartz/CronExpression.html

对指定星期几和月份值的支持不完整(您需要在其中一个字段中使用“?”字符)。

您可以使用 0 30 4 ? * MON-FRI *

在04:30:00am,周一至周五的每一天,每个月

您可以做一个表达式过滤器检查,看看今天的日期是否不是第一个,然后继续。

<expression-filter expression="#[server.dateTime.getDayOfMonth() != 1]" doc:name="Expression"/>