You are here: Reference > Activity methods > Apply-Parse-Structured

Apply-Parse-Structured method

Use this method to locate and execute a Parse Structured rule (Rule-Parse-Structured rule type). Parse Structured rules parse structured text string into property values added to the clipboard. The source of the input data depends on which rule type calls this method:

Parameters

This method has two parameters:

Results

Parse Structured rules have two key parts: an Applies To class and a Record Type.

First, the system assembles a key for the desired Parse Structured rule. It uses the class of the step page as the Applies To class of the key, and the value of the RecordType parameter as the second key part. (If the Step Page field is blank, it uses the class that is the Applies To key part of the activity or Parse Structured rule.)

Next, the system uses rule resolution to locate the Parse Structured rule.

Finally, it applies the Parse Structured rule in the current context:

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Using parent activity's primary page

Usually when an activity calls another activity, the primary page and default step page of the second activity would be the step page of first activity. Rule-Parse-Structured rules can be considered special activities, but with slightly different behavior:

If an activity calls Rule-Parse-Structured type of rules using "Apply-Parse-Structured" method, the primary page of the Rule-Parse-Structured rule would be null and will eventually refer to parent's primary page - that is, the primary page of the activity, and the default step page of Rule-Parse-Structured rule would be that of the step page mentioned in the "Apply-Parse-Structured" step method.

Related Topics Link IconRelated information

Methods and instructions by function