Set up a rule to perform a task on a schedule that is created by another rule.
You cannot use the Timer (Scheduled) flow action to repeat an action on a specific schedule—for example, to send an e-mail every Sunday at midnight.
To set up a recurring scheduled task, consider using the scheduler in your Microsoft Windows operating system to send a remote trigger to the rule set that contains the task. Prinergy can perform the action (for example, e-mail a text file) on a schedule that is created by another rule, and can trigger the schedule automatically.
How it works:
A rule ends in the Execute Command action, which runs a Windows AT command (in a batch file or not) to create a scheduled task. The scheduled task runs a batch file that starts the RaiseEvent tool, which creates a Remote Trigger, which starts a rule.
- Create a rule for the task (action) that you want to trigger on a recurring schedule. The rule must start with a Remote Trigger event.
For testing purposes, end the rule with the Write Text to File action. - Create a batch file called
RaiseEvent.bat
on the Prinergy server. This batch file should be written so that it sends a remote trigger to start the rule that you created in Step 1. For example:"d:\Program Files\Kodak\RBA\bin\raiseevent.exe" "Test\RemoteTrigger" -host <HOSTNAME> -port 61235 -context Test
where<HOSTNAME>
is the name of the Prinergy server. (Do not include < or > as part of the server name.) - Create a batch file called
CreateTask.bat
on the Prinergy server. This batch file should be written so that it creates a scheduled task to run theRaiseEvent.bat
file that you created in Step 2. For example:AT 23:54/NEXT "D:\Documents and Settings\<FOLDERNAME>\Desktop\RaiseEvent.bat"
Do not include < or > in the folder name. - Create a rule that starts the chain of events. For example, the rule might end with an Execute Command action that runs the
CreateTask.bat
file that you created in step 3.
For testing purposes, start the rule with a Manual Trigger action.