...
All this is loaded to a file and then include checks existing *.spf profiles in ml2-0_cm_profiles folder.
Alerts
...
Processing
Alert processing uses methods from the time utils include. A search in the query results file is performed for every workflow in the profile. For periodic alerts last workflow with name from profile is checked by update_date and current time values difference and if the difference is greater than timeperiod parameter – this workflow is written down into current event array. For stuck workflow alerts type all processing workflows will be checked and if theirs processing time will be greater than timethreshold – it will be also write down in the current event array.
TSR
...
Generation
Every line in current event array will be parsed. With create_tsr.inc TSR with necessary information will be created. Type of the TSR message is chosen from current event line time variables type.
...