Managing the LifeCycle of your Data According to a Profile Assessment Result

You can use the Data Setup app to link the profile result to your data using a business rule.

  1. 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.
  2. Right-click the resource set called Business Logic for validation on server and select Create a Resource Table.
  3. Click OK in the Resource Set dialog box.
  4. 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.
  5. Click Create a Business Rule.
  6. Click OK in the Business Rule dialog box.
  7. Enter the business rule body. To do so, proceed as follows:
    1. Double-click the FactType cell to select the type from the list, VPMReference, in our example.
    2. 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
      	}
      }
  8. Enter the business rule name in the Business Rule tab and click OK.
    The Business Rule - Pre Check Maturity (PLMCheckMaturity) editor opens.
  9. Click OK three times when done.

The business rule is created.