Doing some work prototyping a solution to derive connector tagged values based on what element feature (operation or attribute) the connector is linked too... PART of my effort to implement SBV within requirement engineering using EA...
t_connector.StyleEx seems to use LFEP/LSEP prefixes regardless if it is an operation or an attribute.
vbScript function - to extract GUID of LinkedToElementFeature
public function IsConnector_LinkedToFeature( byval styleEx_Value, byval connectorEnd2Check, byref targetFeaturedGUID )
'Example: Links to Attributes
' LFEP={B7306EA4-E8F3-4743-80EE-BDF36534E1AF}L;LFSP={0C85C78D-9173-4cf4-A2C2-85BE7C8FB7B4}R;
'Note: Prefix LFEP/LFSP are the same regardless of link to feature's attribute or operation
dim strTargetPrefix, iStartPosOfGUID
dim blnResult
blnResult = False
if len( styleEx_Value ) > 0 then
select case lcase(connectorEnd2Check)
case gcStrTARGET_END
strTargetPrefix = "LFEP="
case gcStrSOURCE_END
strTargetPrefix = "LFSP="
case else
msgbox "reClassLibrary.IsConnector_LinkedToFeature - Expected value of 'target' or 'source'"
end select
'Search for start of Target GUID
iStartPosOfGUID = instr( styleEx_Value, strTargetPrefix )
if iStartPosOfGUID > 0 then
blnResult = True
targetFeaturedGUID = mid( styleEx_Value, iStartPosOfGUID + len( strTargetPrefix ), gcEA_GUID_LENGTH )
end if
end if
IsConnector_LinkedToFeature= blnResult
end function
ANYONE interesting in SBV & SBVR give me a holler! :)