In this task, you will learn to build the following rule set:
- In Rule Builder, on the Events tab, in the Prinergy Events > Page Events group, locate an Page Approval Changed event and drag it to the canvas.
- On the Flow tab, locate the Limit Concurrency action and drag it to the resulting action of the Page Approval Changed event.
- Double-click the Limit Concurrency action and edit the parameters as follows:
- For the Concurrent Limit parameter, in the Value column, type
1
. - For the Limiter Name parameter, in the Value column, type
Page_Approval_Record_File
. - Click OK.
- For the Concurrent Limit parameter, in the Value column, type
- On the Flow tab, locate the Split action and drag it to the OK event of the Limit Concurrency action.
- Double-click the Split action and edit the parameters as follows:
- For the Items parameter, in the Value column, from the list, select Previous Event (Page Approved) > Pages.
- For the Items Per Group parameter, in the Value column, type
1
. - For the Per Group Delay parameter, in the Value column, select 1 minute and click OK.
- Click OK.
- On the Actions tab, locate the Write Text To File action and drag it to the Each Split event of the Split action.
- Double-click the Write Text To File action and edit the parameters as follows:
- For the File to write to parameter, in the Value column, click the browse button and navigate to
Global Variable
folder. In the folder, select the Page_Approval_Record_File variable. - For the Text parameter, in the Value column, type a string that contains the job name, page name, new approval state, event time, and user name all separated by commas.
For example, the final parameter should look like:%triggerEvent.RootEvent.Job.Name%,
%triggerEvent.ItemGroup.Name%,
%triggerEvent.RootEvent.NewApprovalState%,
%triggerEvent.RootEvent.EventTime%,
%triggerEvent.RootEvent.History.UserName%
Note: The string must be typed in one single line with all the parameters separated by commas. - For the Append parameter, in the Value column, in the list, select True.
- Click OK.
- For the File to write to parameter, in the Value column, click the browse button and navigate to
- On the Flow tab, locate the Next action and drag it to the Done event of the Write Text To File action.
- Double-click the Next action and edit the parameters as follows:
- For the Loop Start parameter, in the Value column, from the list, select Previous Event (Each item Group).
- For the Abort Loop parameter, in the Value column, in the list, select False.
- Click OK.
- Save and close the rule set.