Creating a Business Rule

You can modify the behavior of your application using a business rule.

  1. From the Compass, click 3D Modeling Apps and select Quality Rules Capture.
  2. Select an opening. To do so, expand the PLM Business Logic for object typing node, right-click Deployment Extension Choice (INFRADeploymentExtensionComputation) and select Create Business Rule .
  3. Rename the Business Rule and click OK.
    The Business Rule editor opens.
  4. Double-click the This Object box and set the type to VPMReference and enter the following code: Parameters.SetAttributeString("DeploymentExtensionName", "TST_MyDeploymentExtension").
    The business rule is created and appears in the tree below the node corresponding to the opening Id you are working on.
    Important:
    • You can also create a business rule when trying to select one from the Select a Business Rule window in the Data Setup app. In this case, click ... next to the Create a new Business Rule box.
    • The name between quotes must contain the prefix you chose when creating the deployment package and the extension name.
  5. Click OK and, in the top bar, select Share > Save > Save with Options.