Designer Studio — Completing the new rule dialog box |
Complete the New rule dialog to define the key parts of a new rule.
As you complete the New form, you provide one or more parts that together determine the external form of a unique rule key. (In some other object-oriented environments, this is called object creation, instantiation, or the New() function.)
Use these steps to complete the process:
Use any of these methods to access the New dialog
CTRL
+N.
Chose a category, then a type. The Type determines which rule type or data class is created. Accept the default type shown as the Type, or click that type to pick a category and then a type.
The form changes to identify fields appropriate to that type.
You can't select a data class that does not belong to a category. For such cases, review help topics for each data class for instructions.
Select a filter to restrict the SmartPrompt list of Applies To classes to a smaller, more relevant subset of classes. This avoids searching long lists of classes that are not part of your implementation or framework and eliminates validation errors caused by creating instances in the wrong RuleSets.
The filter appears only when you create a rule that requires an Applies To class as part of its key structure, such as a property or activity rule.
Implementation
— Displays classes that belong to the Application RuleSets list in your Operator profileFramework
— Displays classes that belong to any RuleSet version in the RuleSet list in your Operator profile and not included in the Application RuleSet list (omitting the Pega- classes)All
— Displays classes that belong to both the Application RuleSet and RuleSets lists in your Operator profile and Pega- classesStep 3: Enter or select each name field (key parts) and specify type
Complete the key fields (often labeled Name). Use SmartPrompt if it is available. Generally, start each key part with a letter and use only letters, digits, and the dash character. (Certain rule types have additional restrictions on names.)
Click the help icon () to learn more about the key parts for the type.
Many rule types require a class as a key part, often with the label Applies To. Generally, choose the most specific class — that is, lowest in the class hierarchy — that serves the needs of your application. For example, choose MyCo-LoanDiv-MortgageApplication rather than MyCo-LoanDiv- as the Applies To class for a new flow or property, unless you are certain that the rule is applicable to all the objects in every class derived from MyCo-LoanDiv-.
Some classes may not be appropriate as the Applies To key part, or may not be appropriate for your RuleSet. For example, you cannot save a rule with Data-North as the Applies To class into the South RuleSet if the class Data-North class is restricted to (say) the North RuleSet.
See Choosing good rule and data instance names for more about names.
The Type field appears if Pega-Mobile is part of your application RuleSet list. Select Standard
if this navigation rule is being developed for applications running non-mobile devices. Select Mobile
if this navigation rule is being developed for mobile devices such as Iphones or tablets. The type is used as an indicator for display of fields specific to mobile devices. If your application will be accessed by standard and mobile devices, create a navigation rule for each and specify the correct navigation rule in the appropriate portal.
Optional. When creating a flow, harness, section, or flow action, you can copy a template.
A few standard flows, harnesses, flow actions, and sections are known as templates. These rules have special characteristics and settings.
If the Template field appears on the New dialog, you can select one to use as a base (similar to copying) for this rule. This can save time and typing.
Step 5: Complete RuleSet and version fields
Identify the RuleSet and version for the new rule. PRPC supplies default values for these if the access group referenced in your Operator ID data instance contains default values. The RuleSet Name list and version list include only those that appear on your RuleSet list and that are not locked.
You can select any RuleSet and version values from the list, if your choice meets the prerequisites RuleSets and version requirements in the RuleSet Version.
Rule resolution applies to all but a few rule types. See rule resolution for a definition and a list of the exceptions.
Step 6: Set the rule availability
Choose an initial availability value for the new rule. You can change this value anytime later using the Availability button (). Choose Yes
, No/Draft Mode
, Blocked
, Final
, or Withdrawn
:
Yes
to make this version of this rule available to rule resolution and skimming.No/Draft Mode
to make this version of this rule unavailable and never found during rule resolution or skimming by any user regardless of other rule settings, and to allow to rule to be saved with invalid fields.Blocked
to make this version and all lower versions of this rule unavailable to rule resolution or skimming.Final
to make this rule available to rule resolution and skimming, but also to prevent this version of the rule from being saved in another RuleSet with the same key. You can save it, however, as a higher version in the same RuleSet.Withdrawn
to make this rule and other rules that have in common the visible key, RuleSet, major version, and circumstance qualifications from being selected by rule resolution. For details and benefits of this Availability value, see withdrawn rule.Exceptions: The Available field is not present on a few rule forms. For example, Rule-Obj-Class instances are always available.
After you save this rule instance, you can change the availability value during the Availability () or Save As () operations.
Step 7: Complete the Status field
Leave the Status field blank except in special situations. Select:
API
— To associate this rule with one of PRPC's interfaces. Select an interface. (Traditionally, this designation indicates an intention to not change the functionality of the rule in future releases.)Template
— To mark this rule as a template, to appear in the Template field. Useful for harnesses and flows. (See step 4 above)Extension
— To mark this rule as an extension point of a framework, to be overridden in each implementation of the framework. Extensions are specified by framework developers for rules that are intended to be overwritten or copied down to the implementation class. (If the current application was developed using the Enterprise Application Accelerator, select > Applications > Tools > List Extensions to list rules with this status.)The value you select for this property (Rule-.pyMethodStatus) does not affect validation, execution, rule resolution, or migration of the rule. The value does not appear on the rule form. You can change this value anytime later by clicking the Availability button () to open a window in which to update the Status value.
Step 8: Complete the Project Management fields
If Project Management is enabled for your application, additional fields display in the Project Management section in the New window that allow you to link your development changes to project items assigned to you. Depending on the type of project item (user story, bug, task or issue) some or all of the information entered here is transferred via the Project Management communication link to the item in the Project Management Framework.
If you want to record and track rule changes related to a project item on your Project Worklist:
You can view a list of the rule changes in a separate window when you click the View Changes link from the worklist. You can choose display a list of your changes from the My Changes tab or all rule changes in the application from the All Changes tab.
For more information about the framework and tracking development progress, see the PDN publicationProject Management Framework User Guide.
Click Create to reserve the rule key you have entered and to view the rule form. This is an intermediate step; it does not save a complete, valid rule.
For simple field value rules, when condition rules and Single Value
properties, you can complete the rule creation and bypass the rule form if you choose the Quick Create button rather than the Create button. Review the relevant help topics for details.
Several restrictions may prevent the New or Save As operation from completing. This list explains common situations: