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
  • to which project it belongs
Infrastructure openings are available in Data Setup 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.
Note: Precommit business rules do not need to be associated with a collaborative space in Data Setup. For more information, see Precommit Openings.

  1. In the Resource Tables tab, select the Resource Set ID with the Opening ID of the created business rule.
  2. Right-click the Resource Set ID and select Create a new Resource Table.
  3. Enter a resource table name and click OK.
    The resource table is displayed, with same name than the resource set ID you are working on. This table shows the different resource items of the chosen resource set. The table has just been created, that's why these items are unset. It is up to the administrator to assign a Resource (in this case a business rule) to each of these items.
  4. Double-click the Resource cell (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 sub-item is automatically filled from the chosen business rule. This fact type value can later be modified by double-clicking the FactType cell.
  6. Select the resource set you are working on and that is located in the Resource Tables tab. Drop it to your collaborative space.
    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 (that is, a resource table can be dropped to the Engineering and Standard collaborative spaces).
    • Associating resource sets with a collaborative space in Data Setup does not apply to precommit business rules.
    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.