Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Candaele 1197 posts 2049 karma points
    Apr 12, 2012 @ 15:54
    Anthony Candaele
    0

    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

  • Anthony Candaele 1197 posts 2049 karma points
    Apr 13, 2012 @ 17:28
    Anthony Candaele
    0

    Hi folks, is this possible with a scheduled task?

    Thanks for your advice,

    Anthony

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Apr 13, 2012 @ 17:43
    Tom Fulton
    1

    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

  • Anthony Candaele 1197 posts 2049 karma points
    Apr 14, 2012 @ 08:19
    Anthony Candaele
    0

    Hi Tom,

    Thanks for your good advice, I'll checkout the TaskScheduler package.

    Thanks a lot,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Apr 30, 2012 @ 13:25
    Anthony Candaele
    0

    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

  • 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.

Please Sign in or register to post replies