预订演示
前页 后页

EARules_CanProxy

EARules_CanProxy allows an Add-In registered to provide rules for a language to specify that one element is a proxy for another.

This event should only be handled for rules extending BPMN.

Syntax

Function EARules_CanProxy (Repository As EA.Repository, Language As String, Element as EA.Element) As Integer

The EARules_CanProxy function syntax contains these parameters.

Parameter

Description

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

Language

String

Direction: IN

Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize.

EARules_Initialize

Target

EA.Element

Direction: IN

Description: Specifies the element showing a context menu that includes the option for new child diagrams.

Element Class

Return Value

  • Return a positive value to specify that the target element is a proxy
  • Return zero to specify that the target element is not a proxy
  • Return a negative value to use the behavior from the base rules