Add New business constraint in the Processing Constraint form (Setup : Rules : Security)
Entity : Choose the entity on which the constraint needs to be applied.
Constraints Block : Define the action or the constraint.
Condition Block : Define the condition upon which the Constraint needs to be fired.
Applicable To Block : Define the responsibilities to which the constrain is applicable.
Validation Template : New template needs to be defined in the Validation template form before attaching the same to the Processing constraint. (Setup : Rules : Security)
Validation Template Type can be of 3 types : API, Workflow or Table
1. API - Type the custom PLSQL package in the Package field and the procedure within the package in the procedure field. The procedure needs to be declared as below
Procedure xx_procedure_name ( p_application_id IN NUMBER,
p_entity_short_name in VARCHAR2,
p_validation_entity_short_name in VARCHAR2,
p_validation_tmplt_short_name in VARCHAR2,
p_record_set_tmplt_short_name in VARCHAR2,
p_scope in VARCHAR2,
p_result OUT NOCOPY NUMBER ) IS
All the IN parameters are passed by the system internally. The OUT parameter accepts two results 1 (TRUE) or 0 (FALSE). Based on the result from the validation Template, the condition is true or false.
2. Workflow : Enter the Item Type, Process Name, Status and the Result expected for the condition to be TRUE.
3. Table Type : Specify the Column Name, the Validation Operator and the string to which the column value needs to be compared to.
Wednesday, September 29, 2010
Subscribe to:
Posts (Atom)