EA_OnRunConnectorRule

Return to Introduction  Previous page  Next page

Syntax

Sub EA_OnRunConnectorRule(Repository As EA.Repository, RuleID As String, ConnectorID As Long)

The EA_OnRunConnectorRule function syntax contains the following elements:

Parameter

Type

Direction

Description

Repository

EA.Repository

IN

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

RuleID

String

IN

The ID that was passed into the Project.DefineRule command.

ConnectorID

Long

IN

The ID of the Connector to potentially perform validation on. Use the Repository.GetConnectorByID method to retrieve the Connector object.

Details

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.

See Also

EA_OnInitializeUserRules