Setting Up Attribute Eligibility Checking
This topic describes the high-level steps for setting up attribute eligibility checking.
Writing a Custom PSP Procedure to Check Eligibility
You can use a given procedure to evaluate one attribute or many attributes:
Use conditional statements to use one procedure to evaluate multiple attributes that have different evaluation criteria.
Or create one procedure for each attribute.
Typically, the custom procedure includes the following steps:
In a step of the PSP procedure, log the Context property set.
In a step of the PSP procedure, log the RowSet property set.
In a step of the PSP procedure, set all rows to Eligible by default before evaluating the row set:
This step uses the Row Set Transformation Toolkit business service, Conditional Action Transform Method.
Input arguments are shown in the following table.
Input Argument Type Value Property Name On Default 1
Literal
{Row.Eligibility Status} = LookupValue('PEC_ELIG_STATUS_CD','Y')
Row Set
Process Property
Not applicable.
Row Set
The output argument is shown in the following table.
Property Name | Type | Value | Output Argument |
---|---|---|---|
Row Set |
Output Argument |
Not applicable. |
Row Set |
In one or more steps of the PSP procedure, check attributes for eligibility:
This step uses the Row Set Transformation Toolkit business service, Conditional Action Transform method.
Input arguments include conditional statements that check whether the value entered is eligible.
Output arguments set rows to ineligible if these conditions are true.
In Administration - Order Management, then the Message Types view, define the error message.
In Administration - Order Management, then the Payload view, create payload variable records.
In a step of the PSP procedure step, assign context and rowset values to the message payload variables.
Creating the Attribute and Assigning It to a Product Class
Create the attribute and assign it to a product class in the usual way, described in Process of Creating Products with Attributes.
In the Administration - Product, Product Classes, Version, and then the Attributes view:
In the Check Eligibility field, select the checkbox for any attribute whose eligibility you want to check.
In the Eligibility Procedure field, select the custom PSP procedure that you created to check the eligibility of this attribute.