预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EA_OnRunConnectorRule

This event is triggered once for each rule defined in EA_OnInitializeUserRules to be performed on each connector in the selection being validated.
If you don't want to perform the rule defined by RuleID on the given connector, then simply return without performing any action.
On performing any validation, if a validation error is found, use the Repository.ProjectInterface.PublishResult method to notify Enterprise Architect.

Syntax

Sub EA_OnRunConnectorRule (Repository As EA.Repository, RuleID As String, ConnectorID As Long)
The EA_OnRunConnectorRule function syntax contains these parameters.

Parameter

Type

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

RuleID

String
Direction: IN
Description: The ID that was passed into the 'Project.DefineRule' command.

ConnectorID

Long
Direction: IN
Description: The ID of the connector to potentially perform validation on.
Use the 'Repository.GetConnectorByID' method to retrieve the connector object.

Learn more