掲示板
question about cron-trigger-value
3年前 に Scarletake Bwi によって更新されました。
question about cron-trigger-value
Expert 投稿: 326 参加年月日: 10/12/20 最新の投稿
hi,
my question is,
i used follow config in liferay-portal.xml, it work well.
but if i want it be trigger every 2th, 4th and 5th friday, it doesn't work.
can anyone help?
my question is,
i used follow config in liferay-portal.xml, it work well.
<scheduler-entry>
<scheduler-description>
test
</scheduler-description>
<scheduler-event-listener-class>test.Trigger</scheduler-event-listener-class>
<trigger>
<cron>
<cron-trigger-value>0 0 0 ? * FRI#3</cron-trigger-value>
</cron>
</trigger>
</scheduler-entry>
but if i want it be trigger every 2th, 4th and 5th friday, it doesn't work.
<scheduler-entry>
<scheduler-description>
test
</scheduler-description>
<scheduler-event-listener-class>test.Trigger</scheduler-event-listener-class>
<trigger>
<cron>
<cron-trigger-value>0 0 0 ? * FRI#2,FRI#4,FRI#5</cron-trigger-value>
</cron>
</trigger>
</scheduler-entry>
can anyone help?
9年前 に venka reddy によって更新されました。
RE: question about cron-trigger-value
Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
hi,
Have you gone through the below urls, it can help you
http://www.cronmaker.com/
http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger
0 15 10 ? * 6#3 : Fire at 10:15am on the third Friday of every month
Have you gone through the below urls, it can help you
http://www.cronmaker.com/
http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger
0 15 10 ? * 6#3 : Fire at 10:15am on the third Friday of every month
3年前 に Scarletake Bwi によって更新されました。
RE: question about cron-trigger-value
Expert 投稿: 326 参加年月日: 10/12/20 最新の投稿venka reddy:
hi,
Have you gone through the below urls, it can help you
http://www.cronmaker.com/
http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger
0 15 10 ? * 6#3 : Fire at 10:15am on the third Friday of every month
Dear Mr.
thank you for reply.
it also can work
<cron-trigger-value>0 0 0 ? * FRI#3</cron-trigger-value>
i want is every 2th, 4th and 5th friday.
any suggest?
9年前 に Pankaj Kathiriya によって更新されました。
RE: question about cron-trigger-value
Liferay Master 投稿: 722 参加年月日: 10/08/05 最新の投稿
As per documentation CronExpression, FRI#3,FRI#4,FRI#5 is not allowed as its multiple expression.
You can specify multiple trigger values separately by multiple cron tags.
You can specify multiple trigger values separately by multiple cron tags.
8年前 に Penney li によって更新されました。