Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Defining rules with Rule Wizards : Using the Process Control Rule wizard
 

Using the Process Control Rule wizard

You can use the Process Control rule wizard to trigger the execution of rules using XML messages. This type of rule wizard can only be applied to a process, not a workstep. This rule wizard enables Progress Developer Studio for OpenEdge to receive XML message schema from, and interact asynchronously with, external applications.
To apply a Process Control rule to a process:
1. From the Integration category, drag the ProcessControl () icon to the Content pane, opening the Process Control wizard.
2. From the Description page, review the description of the rule wizard, then click Next to continue. Click Cancel, at any time, to exit the wizard.
3. From the second page, you can assign the name of the rule module to which the Process Control rule will be assigned, and define the actions.
a. From the Process Action(s) section, you can select any of the following actions from the drop-down list provided, then click Add. You need to define at least one action.
*Create Process Instance: creates an instance of the process when an XML message for creating a process instance is received. From the Create Process Instance dialog box, enter the name of the creator and an instance name prefix (optional). You can also use the Priority drop-down list to set the priority of the process instance. You can also add dataslots (with default values) to the process instance. Click Add to open the Select Dataslots dialog box, where you can select a dataslot and click OK to add the dataslot in the Name/Value table. You can add as many default dataslot values as required.
*Complete Workstep(s) completes the selected worksteps in the process when an XML message for completing worksteps is received. To add worksteps, click Add, opening the Complete Workstep(s) dialog box. Click Add to open the Workstep Dataslot(s) dialog box, where you can select a workstep to be added from the Workstep drop-down list. Optionally, you can add dataslots (with default values) to the workstep. You can add as many default dataslot values as required, and use these values when the specified workstep is completed.
*Update Dataslot(s) allows you to modify the value of selected dataslots when an XML message for updating dataslot values is received. To select the dataslots to be updated, from the Update Dataslot(s) dialog box, click Add, opening the Select Dataslots dialog box. Select a dataslot from those listed and click OK. You can add as many dataslot (with default values) as required.
b. Click Next to continue.
4. From the Summary page, review the summary of the parameters you have selected for the Process Control rule wizard. Click Next to continue, or click Back to return to previous pages if you need to return to previous pages and make corrections.
5. From the Save As page, modify (if required) the name of the rule file in the File name box, or click the adjoining ellipsis button to change the location of the rule file.
6. Click Finish to create the new rule file in the specified location, and apply it to the process.