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.


Messages - philchudley

Pages: 1 2 [3] 4 5 ... 51
31
The method to display the menu for a tagged value as per BPMN (assuming the ID if the MDG is MYMDG)

1) Define an enumeration containing the literals for the tagged value
2) Add an enumeration tagged value to the stereotype (lets say MyStereotype), for example MyTaggedValue
3) In the metaclass for the stereotype add an attribute named _subTypeProperty of type String
4) Set the initial value of this attribute to the fully qualified MDG name of the tagged value (as defined in 2) above. In this example this would be

MYMDG::MyStereotype::MyTaggedValue

Hope this helps

Phil


32
A trick I use to let an element "link" to multiple diagrams is:

1) Create a EA Custom (or other diagram type) diagram. I usually place this diagram in its own package.
2) Drag onto this diagram the diagrams you want the element to link to as Navigation Cells, and choose an image of your choice.
3) Set the element to be a composite linked to the diagram created in 1)

Phil

33
General Board / Re: Repository Schema ER diagram
« on: January 26, 2023, 02:05:33 am »
I suspect that Trigger objects are located within the t_object table with t_object.Name matching the value PDATA1 in the t_connector. table

So a join using t_object and t_connector on t_object.Name and t_connector.PDATA1 restricting t_object to t_object.Object_Type to 'Trigger' and t_connector.Connector_Type to 'StateFlow'

Should do the trick.

Phil

34
Bugs and Issues / Re: Latest Release of EA v16.1 Template Fragments
« on: January 24, 2023, 08:15:00 pm »
Fair comment Geert, I was clarifying my interpretation.

I understand the Child elements when left blank, indeed does repeat what is in the element section, for all child levels. However, I have observed that if you place something inside the child elements section it overrides the element section, but only executes for one level of child level, well at least it did last time I tried.

I was just wondering whether fragment could be used in the child element section to provide a different appearance to that of the element. An unusual situation, but I have been asked by clients whether this is possible. Hence my post.

Phil

35
Bugs and Issues / Latest Release of EA v16.1 Template Fragments
« on: January 24, 2023, 12:12:23 am »
Hi All

Sparx have announced a new build release if EA v 16.1 and in the release notes it states, in

Template Fragments can now be used in all element sections within a document template

I have just tested this, and yes a Template Fragment can be used in the Element section within the Diagram section of a template, but NOT within the Child elements section of Element section!

Not quite all element sections within a document template methinks, unless of course Sparx regard Child elements as not an Element section.

Anyone else confirm or deny my test? If confirmed, then a bug report will be sent off.

Phil

36
General Board / Re: Automatically change 'Status' to "proposed' on change
« on: January 18, 2023, 08:17:45 pm »
That's correct there is no "out-of-the-box" solution.

To supplement what Geert as an alternative to an add-in which requires an installer you could have a look at Model Add-ins.

I have successfully used these to respond to EA_OnContextItemModified to monitor / update element properties.

Phil

37
Automation Interface, Add-Ins and Tools / Re: Session.Prompt Dialog
« on: January 03, 2023, 09:16:15 pm »
Sorry forgot to add I am using JavaScript in a Model Add-in

Phil

38
Automation Interface, Add-Ins and Tools / Re: Session.Prompt Dialog
« on: January 03, 2023, 09:02:53 pm »
Many thanks Geert sound advice.

I have used DGLInputBox (as per Sparx script library), but cannot find a reference to MsgBox. Do you have any quick pointers?

Much apprecaited

Phil

39
Automation Interface, Add-Ins and Tools / Session.Prompt Dialog
« on: January 03, 2023, 08:04:29 pm »
Has anyone else experienced the following?

In a script or Model Add-in, when using Session.Prompt to display a modal dialog, the very first time the script (or Model Add-in) is run the very first execution of a Session.Prompt command, the modal dialog is displayed minimised on the Windows task bar, rather than on the EA workspace? This gives the impression that EA has "hung up".

All subsequent executions display the dialog as expected.

Using latest build of EA v 16.1, and the behaviour is the same for Windows 10 and Windows 11.

Phil

40
Hi Ian

I believe, and Geert will concert me if I am wrong, but UML (latest version) dictates that control / object flows can only be drawn between actions. EA now enforces these rules, therefore, you have to:

  • Define you activities as stand alone elements on an Activity diagram, add any parameters, and make them composite to link to an activity diagram that models the internal flow in that activity
  • Re-use the activity on its own composite diagram as a link
  • Use actions etc to model the flow, to call an activity within an activity re-use an activity as an invocation

To model the top level orchestration between activities:

  • Model the top level as a single activity and make this a composite element
  • Re-use all other activities as invocations
  • Model the flow between them

A major flaff for simple flows, then as you have discovered, Strict Connector Syntax off, if the way to go.

Oh just for fun the same applies to SysML as well.

All the best for Christmas, New Year and your expedition to New Zealand

Phil

41
If you are using  Master / Model Documents, then the Template used for the Model Document is held in a Tagged Value named RTFTemplate.

Perhaps you used that to determine a list of "active" templates.

Phil

42
General Board / Re: ProCloud Server initial image generation
« on: December 06, 2022, 10:26:54 pm »
Once a repository is opened select Options in the Model section on the Settings Ribbon

Click Cloud in the list on the left-hand side

Check the checkbox labelled Auto create Diagram Image and Image Map (each time a Diagram is saved)

Phil

43
Automation Interface, Add-Ins and Tools / Re: Workflow Events
« on: November 29, 2022, 01:43:10 am »
Thanks Geert most useful info as usual.

many thanks

Phil

44
Automation Interface, Add-Ins and Tools / Workflow Events
« on: November 29, 2022, 12:25:35 am »
Hi All

There is a workflow broadcast event that is named EA_AllowPropertyUpdate for which the EA user guide states:

"This event is sent to workflow Add-Ins after a user has changed a built-in property value."

However, upon testing this, it appears that a change to the element Name property does not trigger this event, where as a change to version does
trigger this event. There may be other properties that trigger this event, but I would really like to detect an attempt to change the name property.

I seem to recall in the dim distant past when Workflow scripts were introduced, there was a list of property changes that we detected, I guess Name is not one of them.

Phil

45
Automation Interface, Add-Ins and Tools / Re: MDG Diagram Type Groups
« on: November 16, 2022, 08:07:00 pm »
Many thanks WorkingMatt you beat me to it!

Not being able to use Packages to subdivide the profile into logical areas, has caught me out too. The only package I always use is for Enumerations used to type tagged values.

Not being able to use packages within <<profile>> package is a right pain especially with large MDGs, ... unless someone out there knows a way to make it work?

Phil

Pages: 1 2 [3] 4 5 ... 51