-
From the Compass, select
3D Modeling
Apps
and then Quality Rules Capture.
The
KnowHow Authoring
app
opens.
Note:
You can also create a business rule in the Data Setup editor.
-
Right-click the resource set called
Business Logic for validation on server
and select
Create a Resource Table.
- Click OK in the Resource Set dialog box.
- In the Resource Table window, double-click the Unset resource cell of the Pre Check Maturity (PLMCheckMaturity) opening.
The Select a Business Rule dialog box appears.
- Click Create a Business Rule.
- Click OK in the Business Rule dialog box.
-
Enter the business rule body. To do so, proceed as follows:
- Double-click the FactType cell to select the type from the list,
VPMReference
, in our example. - Enter the rule body:
let state(String)
let result(Integer)
state = Parameters.GetAttributeString("CurrentState")
Validation = false
if(state == "PRIVATE")
{
result = GetValidationFromAssessmentResult(ThisObject, "ProfileOK")
if(result == 1)
{
Validation = true
}
}
-
Enter the business rule name in the Business Rule tab and click
OK.
The
Business Rule - Pre Check Maturity (PLMCheckMaturity) editor opens.
-
Click
OK three times when done.
The business rule is created.