Using Scheduler Tasks - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

You can use the existing schedulers in SmartPlant Foundation to perform specific functions in your project. For example, when you submit a task to the scheduler, you can make the task recur over a set period of time by specifying a frequency of -1 and an interval.

The following example sets up a recurring task with an interval of 1440 milliseconds between each recurrence.

<ISPFSchedulerTask SPFSchTskFailureMsg="" SPFSchTskEnabled="True" SPFSchTskSubmitter="Super User" SPFSchTskContextIncludeHigherConfig="True" SPFSchTskContextQueryConfig="PL_TOC"  SPFSchTskLocked="False" SPFSchTskContextRoles="RL_Super_User" SPFSchTskInterval="1440" SPFSchTskContextCreateConfig="PL_TOC" SPFSchTskStartDate="2013/05/14-00:00:00:000" SPFSchTskStatus="e1SchdReady" SPFSchTskFrequency="-1" SPFSchTskContextUser="superuser" />

SHARED Tip To make a task recur each day, use an interval of 86400000 milliseconds between each occurrence.