Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Creating a Parse Structured rule

Updated on April 6, 2022

To import structured data to the clipboard, create a Parse Structured rule to use in conjunction with a Service File rule or the Apply-Parse-Structured method. For example, you can import fixed-format flat files from various external sources and platforms.

  1. In the header of Dev Studio, click CreateIntegration-MappingParse Structured.
  2. On the Create page, in the Label field, enter an identifier.
    This key value is arbitrary.
  3. In the Context section, in the Apply to field, select the exact class to which this rule applies.

    When this rule is referenced in an activity or elsewhere, this key part must match the class provided in the referencing rule, because rule resolution does not search the class hierarchy for parse structured rules.

    The list of available class names depends on the ruleset that you select. Each class can restrict the application of rules to an explicit set of rulesets, as specified on the Advanced tab of the class form.
    For example: If a Service File rule references this parse structured rule, the Primary page class field on the Service tab must match the Apply to key part.
  4. Click Create and open.
    Result: The Parse Structured rule form opens on the Steps tab.
  5. Complete the Steps tab. For more information, see Using the Steps tab on the Parse Structured form.
  6. On the Parameters tab, define input parameters for the parse structured rule.
    Select In or Out to indicate whether the parameter is used for input to the called activity or output from the activity.

    The system does not prevent setting the value of an In parameter. A called activity can access and change both In and Out parameters on the parameter page.

    For more information, see Defining the input parameters of a rule.

  7. On the Parameters tab, in the Local variables section, define the local variables.
    1. In the Name field, enter the name of the local variable.
    2. In the Description field, enter the description of the local variable.
    3. In the Data type field, select the data type of the local variable.
      The data type ensures that the local variable displays to the user correctly.
      For example: If your local variable is a country name, select String as the data type. If your local variable is a number, select Integer.
  8. Complete the Security tab. For more information, see Restricting Parse Structured rule execution.
  9. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us