Trigger Conditions for the BL
The BL is triggered whenever a user attempts to define a fastener specification. Based on the BL’s output, the app either permits or restricts the definition of the specification process.
The BL returns the following output values:
- true: modifications are allowed for a fastener instance. The user can define or modify the specification
- false: modifications are not allowed for a fastener instance. The user cannot define or modify the specification
- The return value true or false is applicable to all specifications.
- The Fastener Specifications
command can work in Authoring context. It automatically
evolves the fastener instance if a specification is added or modified. But
due to this BL, the modification of specification itself is forbidden and
hence the fastener instance is not modified. This stops the automatic
instance evolution. In other words, the user loses the advantage of the
automatic instance evolution at the end of the Fastener
Specifications command.In this case, the user must manually evolve the fastener instance using the Evolve Instance command before running Fastener Specifications on the evolved instance.
PLM Opening ID
| Object | Description |
|---|---|
| PLM Opening ID | Fsx_FastenerSpecificationsEdiatabilityManagement_ID |
| Customization Intent | Computation |
| Execution Content | Client |
You can use the BL to retrieve the fastener’s data and compute an editability flag (true/false). For example:
-
You can implement this BL using an EKL script. The fastener instance is passed as ThisObject, allowing you to access its attributes and decide whether to return a true or false value (to permit or prevent specification edits).
In addition, you can return an optional message as output to explain the reason for restricting edits.
-
When the BL returns false, the app restricts users from defining or modifying the specification for that fastener instance.
-
The app also displays the message returned by the BL.
-
Example: If an attribute like Maturity is set to Released, and you have a rule that forbids specification definition or modification for Released instances, the app prevents any changes.
Business Rules Arguments
ThisObject corresponds to the input FastenerInstance EKL type for which specification editability needs to verify.
| Parameter Name | Type | Read/Write | Comments |
|---|---|---|---|
| OIsEditable | Boolean | Write | true: if specifications are editable false: if specifications are noneditable |
| OMessage | String | Write | This message is used to notify the user if OIsEditable is false. |
User Commands Triggering the BL
The BL is triggered by the following commands:
- Fastener Specifications
.
Whenever the command loads fasteners data.
- If the user selects the fasteners and runs Fastener Specifications.
- If the user runs the command, and then clicks Load All Fasteners.
- Drilling Definition
. Whenever the command loads fasteners data.
- If the user selects the fasteners and runs Drilling Definition.
- If the user runs the command, and then selects fasteners from the tree or 3D area.
- Torque Definition
. Whenever the command loads fasteners data.
- If the user selects the fasteners and runs Torque Definition.
- If the user runs the command, and then selects fasteners from the tree or 3D area.
- Fastener Head
. Whenever the command loads fasteners
data.
- If the user selects the fasteners and runs Fastener Head.
- If the user runs the command, and then selects fasteners from the tree or 3D area.