Workflow scheduler
Machine workflows and User workflows* can be started from a schedule in Novacura Flow. This is useful when a workflow should be run at a certain time or/and with a certain recurrence. This function is suitable when moving data between systems or doing system checks that may result in user tasks.
All scheduled workflows which will be ran in the future are indicated with a clock icon in server content panel. Each scheduled workflow saves a last run status which is shown in the configuration windows. This windows can be found in the server content context menu for each workflow, i.e. Right click on the workflow and select Schedule....
User workflows must start in a machine swim lane but can later do a handover to an end-user.
Configuration
Machine User: Sets which machine user account that will be used when executing the workflow.
Repeat every: Sets the repeat interval (if any). The start point is used for calculating the cycles.
Start: Date and time for the first execution in your local time zone. Flow use UTC to trigger and save date and times which can result in schedular interface will show another time if your local time zone change, for example when adjusting for daylight savings.
End: Date and time for when the execution should stop repeating. This will not stop any started executions. (Saved in UTC, see Start)
Enable: Sets if the scheduling is active or not.
![](https://help.novacuraflow.com/~gitbook/image?url=https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LtPTgZOYmpJka4jqs1v-3406065915%252Fuploads%252F6tkuFpaWEeJZ86V7mEBf%252Ffile.jpeg%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e4c3698a&sv=1)
Note: This function is depending on the Novacura Flow windows service which is installed along with all Novacura Flow server installations. This service will check for scheduled workflows on a 10s interval, which means that the granularity can never be more precise than 10s.
Tips
More complex repeat patterns can be achieved with FlowScript that restrict the execution. For example running a workflow every Monday, Wednesday and Friday at 03AM can be achieved by settings start time to 03AM and repeat interval to 24 hours. The workflow should then start with a decision step that checks which day it is. See example below.
Best practices
Avoid long running workflows. Workflows can never be run longer than 60min and each machine steps should never take more than 100s.
Don't run multiple instances at the same time. If a workflow take more time (in worst case scenario) than the repeat interval then it will start parallel executions which may result in unexpected behavior.
Troubleshooting
If a workflow wasn't executed as expected follow these steps:
Check the status field, if the execution ended in an error that should be stated here.
Workflow should have a clock icon, or else the configuration is incorrect.
Press Run now... to see that it can be executed with that user and has a published version.
Make sure that windows service is running and correctly configured.
Change log level to info on Novacura Flow server and wait for next execution.
Configuration settings:
Check the following on IIS advanced settings for the Flow Server app pool:
Start Mode = AlwaysRunning
ProcessModel -> Idle Timeout (minutes) = 0
Recycling -> Regular Time Interval (minutes) = 0
Recycling -> Specific Times = Add one or two times a day when no workflows are scheduled and flow server has less traffic.
Check advanced settings for the Server App (under your site):
Preload Enabled = True and check that the IIS feature called Application Initialization Module is installed
Open web.config for flow server and check that the following is in under the system.webServer section
Last updated