Sure, you could do this with a scheduled task. I would probably create an aspx page or web service that looped through all of the Jobs, used NodeFactory or the Document API to check the custom property, set the status property when appropriate, and schedule this to run with the TaskScheduler package.
Let us know if you need help with specific pieces :)
Happy to report that my scheduled task using the TaskScheduler package runs perfectly. The package is also very easy to implement. For now I'm running a .aspx page on a daily basis. But maybe I'll change it in the future to a webservice, but I never worked with webservices in Umbraco.
enabling a scheduled task in umbraco v4.7.1
Hi,
For my umbraco v4.7.1 install I would like to enable a scheduled task:
The document type 'job' should have it's 'status' property automatically set to closed, whenever the startdate of a job instance expires.
Is this possible with Umbraco? Can someone point me in the right direction?
Thanks for your help,
Anthony
Hi folks, is this possible with a scheduled task?
Thanks for your advice,
Anthony
Hi Anthony,
Sure, you could do this with a scheduled task. I would probably create an aspx page or web service that looped through all of the Jobs, used NodeFactory or the Document API to check the custom property, set the status property when appropriate, and schedule this to run with the TaskScheduler package.
Let us know if you need help with specific pieces :)
-Tom
Hi Tom,
Thanks for your good advice, I'll checkout the TaskScheduler package.
Thanks a lot,
Anthony
Hi Tom,
Happy to report that my scheduled task using the TaskScheduler package runs perfectly. The package is also very easy to implement. For now I'm running a .aspx page on a daily basis. But maybe I'll change it in the future to a webservice, but I never worked with webservices in Umbraco.
greetings and thanks again for you help,
Anthony
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.