Foros de discusión

question about cron-trigger-value

Scarletake Bwi, modificado hace 3 años.

question about cron-trigger-value

Expert Mensajes: 326 Fecha de incorporación: 20/12/10 Mensajes recientes
hi,

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?
venka reddy, modificado hace 9 años.

RE: question about cron-trigger-value

Regular Member Mensajes: 231 Fecha de incorporación: 23/03/11 Mensajes recientes
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
Scarletake Bwi, modificado hace 3 años.

RE: question about cron-trigger-value

Expert Mensajes: 326 Fecha de incorporación: 20/12/10 Mensajes recientes
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?
thumbnail
Pankaj Kathiriya, modificado hace 9 años.

RE: question about cron-trigger-value

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
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.
Penney li, modificado hace 8 años.

RE: question about cron-trigger-value

New Member Mensaje: 1 Fecha de incorporación: 24/06/15 Mensajes recientes
I use another crontab syntax generator is at http://www.crontab-generator.org/.