Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - David Rains (bioform)

Pages: 1 [2]
16
General Board / How to indicated ABSTRACT Use Case in 9.0?
« on: August 22, 2011, 01:13:38 am »
I am new to version 9.0 (experienced in 7.5) and can't seem to find how you indicate a Use Case is abstract (there is NOT a 'details' branch as there is under a class - detail: abstract)

Thanks

17
Bugs and Issues / Unable to Cut & Paste in Script IDE
« on: October 11, 2014, 01:42:56 am »
Upgraded to latest release - anyone else having C&P issues when editing scripts?

18
Bugs and Issues / Tagged Values - Resynch not adding missing tag
« on: August 02, 2011, 12:54:02 am »
Running V9 and when I change a stereotype, save it as a profile, then reload the profile and resynch the "new" stereotype it no longer propogates the changes (was at 7.5).

Similar problem if you assign a Enum type before you define it. IF you do that then the drop-down will not be active when you are using the tagged value (previous behavinsor) but you simply correct it by going back to you stereotype force the connection by choosing the created enum from the list, save profile, import, resynch problem solved. This in NO longer the case.

BIG ISSUE for me as I can have hundreds on classes using a stereotype and now have no way to add new tags?!

David Rains

19
The documentation for the related Select <Item> Dialog indicates that you can select attributes, etc.

And even the InvokeConstructPicker will allow you to filter for attributes, but on clicking OK... alas a 0 is returned.

I need to be able to use the InvokeConstructPicker capability to allow a user to specify a state, operation, or attribute (besides an element).

Any ideas on how I can go about this (I'm doing this in VBscript)

Thanks as always...
 ;)

20
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!  :)

21
strSQL = "SELECT t_object.ea_guid FROM t_object"
set c = Repository.GetElementSet(strSQL,2)
msgbox c.count

running the script that contains this fragment gives the DAO error:
DAO.fields [3265] item not found in this collection

Works fine in the query builder but not in my script?

Thanks,

David

22
Working with the Glossary (Term)... I need to understand the CRUD operations for using the glossary.

I understand  Term is the entry object, but is there a collection that represents the entire glossary? I assumed it would work like working with an element collection e.g., element's connectors (collection) the getat etc,

Do I need to do this via SQL?

Thanks,
David

23
I seem to be unable to get my include to work... Keep getting errors like
"Expected Statement, Line 1"

Could I see a post of a simple "Hello World" example... e.g., included function returns a simple string value?

Thanks,

David

24
Automation Interface, Add-Ins and Tools / EA scripting support classes?
« on: January 20, 2011, 05:55:19 am »
I am in the middle of refactoring a script and started to define some classes to make the code a bit easier to follow...

Having a bit of a problem create one of my classes from within another class?

Example: create C (a connector class) and during the process of assigning the connector's ID (let) it triggers the creation of the supplier (Es) and client (Ec) elements...

I know this might seem overkill but it is to help me prototype a solution for building an add-in later...

Thanks,
David

25
This works....
=========
option explicit

sub main()
      if True then
            msgbox("True")
      else
            msgbox("False")
      end if
end sub
main
=========

This does not - no error, code is not running, just nothing...
....................
option explicit

sub main()
      if True then
            msgbox("True")
      else
            msgbox("False")
      end if
end sub
....................

I see in the examples NOW that this is present, but no mention in my VBScript book or within EA help? Did I just miss something?

I am running Windows 7 (64) and EA 7.5 Build 848

Man HAVE I wasted sometime over this!  :)


26
I am working on a set of shape scripts to support SBVs (structured business vocabularies). I am trying to, via scripts, to locate the source class for an associated class (e.g., have Class1 and Class2, drag association class connector between the two and Class3 is created).

The issue I am having is how to locate the object ID of the source class( Class1) from the Class3 element in a script? If I remember right an associated classes' ID is stored in the connector's PDATA1 field...

Previously I did this by SQL calls to a hosted EA model (find the instance of the stereotyped Class3 object ID in the connector table under PDATA1, then use the StartObjectID and EndObjectIDs to find their tagged values I am interested in....

SBV Example: Class1 (term) is named "Dog", Class2 (term) is named "Hand", created associated class using connector and it will be named "DOG bites Hand" (a fact type), the verb "bites" would be displayed as the name label of the association, etc.

thanks for the help in advance... (aka Bioform)
David

Pages: 1 [2]