Rule to Control a Secondary Facet Creation

An opening ID is an entry point used to customize business logic. The Rule to Control a Secondary Facet Creation gives you control over the creation of a secondary facet.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using the

  • Create or Reuse Logical Facet
  • Replace Multiple Objects Using Architecture Components

Definition Description
PLM Opening ID EscItm_CreateSecondaryFacet
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: LogicalOccurrence
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
Input_CurrentActiveSystem String Read Name of the current active system.
Input_CurrentActiveItemSystem String Read Name of the architecture component system linked to the current active system.
Input_SelectedTargetSystem String Read Name of the selected target system for the facet creation.
Input_SelectedTargetItemSystem String Read Name of the architecture component system linked to the selected target system for the facet creation.
Input_SelectedItemArchitectureNumber String Read Architecture number of the selected architecture component for which a facet need to be created.
Input_NumRefRefLinkedFacets Integer Read Number of facets linked with the selected architecture component through a reference-reference link.
Input_NumOccOccLinkedFacets Integer Read Number of facets linked with the selected architecture component through an occurence-occurence link.
Output_ErrorMessage String Write Error message to be displayed if the creation of secondary facet is forbidden.
Output_CreateOption Boolean Write Boolean to allow or block the creation of secondary facet.

Sample

The following sample illustrate how the opening ID works.

let NumRefRefLink(Integer)
set NumRefRefLink = Parameters.GetAttributeInteger("Input_NumRefRefLinkedFacets")
let boolCreateOption(Boolean)
set boolCreateOption = TRUE
let errorMsg(String) 
set errorMsg=""

if (NumRefRefLink == 0)
{
	set boolCreateOption = FALSE
	set errorMsg = "Primary facet does not exist"
}

Parameters.SetAttributeString("Output_ErrorMessage", errorMsg)
Parameters.SetAttributeBoolean("Output_CreateOption", boolCreateOption)