Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Setting workstep properties : Defining properties of Activity worksteps : Using Advanced tab of Activity workstep properties : Adding overdue actions
 
Adding overdue actions
You can use the Overdue Actions tab to set procedures that occur when the Activity workstep is overdue. This tab includes two sections, namely, Overdue Actions and On last overdue. Use the Overdue Actions table to add new overdue actions, edit or remove existing overdue actions, and change their sequencing. These actions are executed each time the workstep is overdue. For information regarding actions in the On last overdue section, see For the last overdue action.
BPM Designer calculates the due date of a workstep by adding the duration of the workstep (as defined in the General tab) to the time the workstep is actually activated. If the duration is not specified, the due date of an activated workstep is set to the next day. By default, BPM Designer checks all activated worksteps every 30 seconds and performs specified overdue actions.
Note: For more information on overdue actions, refer to the “Assigning Overdue Actions” section in Chapter 3 of the Application Developer’s Guide.
To add an overdue action:
1. From the Overdue Actions section, click New, to open the Overdue Actions dialog box. This dialog box contains a Number of times to execute box and three tabs, namely, Actions, Script, and Alerts. The Actions tab lists actions you can define for an overdue workstep.
2. In the Number of times to execute box, specify the number of times you want the Overdue actions to execute.
3. Select the Send Email checkbox to send an e-mail each time the Overdue is activated.
a. Click the ellipsis button, to open the Send Email dialog box.
b. Enter the required content in the appropriate boxes. Use comma-separated values to enter multiple e-mail addresses. Specify an e-mail address as @<DataslotName> to dynamically obtain a mapped dataslot value.
Make sure the e-mail address you entered is valid. No action will be taken, and no errors logged, if the e-mail address is invalid.
c. Click OK, to return to the Overdue Actions dialog box.
4. Select the Change priority checkbox to set and change the priority of the overdue action. From the adjoining drop-down list, select any of the priorities listed.
5. Use the Extend duration section to extend the duration of an Overdue action. Enter duration in terms of days, hours, minutes, or seconds. The earlier duration defined for this workstep gets extended by this value. For example, after a workstep with a duration of one hour becomes overdue, you can extend the duration of an overdue action to two hours. The duration is now redefined to two hours starting from the time the workstep becomes overdue. The number of repeat actions you defined in Number of times to execute box extends the workstep’s duration that many times.
6. From the Scripts tab, enter script that will be executed for each Overdue Action. For more information on entering Java or JavaScript, see Adding script to a workstep.
7. Use the Alerts tab to add one or more alerts during the Overdue Action.
a. Click Add to add a new alert, to open the Add dialog box.
b. Select an alert, if available, from the drop-down list and click OK to add the alert to the overdue action.
For details regarding creating an alert, see Using alerts.
To remove an alert from the list, click Remove; or click Move Up or Move Down to change the sequencing of the Alerts. For more information, see Associating an alert with an overdue action.
8. After defining the Overdue Actions, click OK, to return to the Overdue Actions tab in the Advanced tab of the Properties view.