coldfusion - How to pass parameters to scheduled task via cfschedule? -


is there way pass parameters or share data scheduled task? understand can pass serializable arguments quartz job, seems not available in cfschedule. options achieve this?

the easiest way have .cfm file called cfschedule calls cfc , passes desired methods.

if want more flexible solution, have scheduler.cfc allows have method called @ frequency want , have pass arguments method call.

http://www.bryantwebconsulting.com/blog/index.cfm/2009/2/26/schedulercfc-10

it can gotten here.

https://github.com/sebtools/com.sebtools/

the important thing have have scheduler instantiated application scope , .cfm called cfschedule runs:

if have 1 method arguments needs called frequently, scheduler.cfc overkill on simple solution, if general problem need solve more frequently, can pay off nicely.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -