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

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual void EA_OnRunParameterRule(
	Repository Repository,
	string RuleID,
	string ParameterGUID,
	string MethodGUID,
	long ObjectID
)
Visual Basic
Public Overridable Sub EA_OnRunParameterRule ( _
	Repository As Repository, _
	RuleID As String, _
	ParameterGUID As String, _
	MethodGUID As String, _
	ObjectID As Long _
)
Visual C++
public:
virtual void EA_OnRunParameterRule(
	Repository^ Repository, 
	String^ RuleID, 
	String^ ParameterGUID, 
	String^ MethodGUID, 
	long long ObjectID
)

Parameters

Repository
Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
RuleID
Type: System..::..String
The ID that was passed into the Project.DefineRule command.
ParameterGUID
Type: System..::..String
The GUID of the parameter to potentially perform validation on. Use the Repository.GetParameterByGUID parameter to retrieve the parameter object.
MethodGUID
Type: System..::..String
The GUID of the method that owns the given parameter. Use the Repository.GetMethodByGuid method to retrieve the method object.
ObjectID
Type: System..::..Int64
The ID of the object that owns the given parameter. Use the Repository.GetObjectByID parameter to retrieve the object.

See Also