Associating a Business Rule with an Opening ID, a Fact Type and a Collaborative Space

You can associate a business rule with its opening ID / a fact type couple and also with a collaborative space. The business rule contains a script to be executed. To use it, you must specify which application is going to use it and to which project it belongs. Infrastructure openings are available to the Data Setup app to let you define and plug business rules. To be effective, a newly created business rule must be linked to both the Opening ID, and the Fact Type and also to the distinct collaborative spaces.

  1. In the Resource Tables tab, select the Resource Set ID comprising the Opening ID of the created business rule. Right-click the Resource Set ID and click Create a new Resource Table.
  2. Click Create Resource Table .
  3. Rename the resource table and click OK.
    The resource tables appear, which name is the same as the resource set ID your are working on. This table shows the different resource items of the chosen resource set. because the table has just been created, these items are for the moment unset. It is up to the administrator to assign a Resource (in this case a business rule) for each of these items.
  4. Double-click the Resource cell (called Unset) to assign a business rule to the chosen Opening ID.
    The displayed dialog box shows a list of business rules that are present in the database and that correspond to the opening ID you selected. Each business rule has its corresponding fact type displayed in the second column.
    Note: For a same opening ID, you can add as many subitems as you want, and with a different fact type.
  5. Select a business rule.
    Once the business rule is selected, the fact type of the resource subitem is automatically filled from the chosen business rule. This fact type value can later be modified by simply double-clicking the FactType cell.
  6. Select the resource set you are working on and that is located in the Resource Tables tab. Drag and drop it to your collaborative space (for example to your project called Engineering).
    Notes:
    • Once the resource tables tab has been filled up, you must bind your resource set to the collaborative space you are working on. This space is visible in the Data Setup editor, in the Project bindings frame.
    • A same resource table can be added to one or different collaborative spaces projects at the same time (i.e. a resource table can be dragged and dropped to the Engineering and in the Standard collaborative spaces).
    Warning: Only one business rule can be associated with a specific opening ID and a specific type. If it is not the case, an error automatically occurs at the execution.