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 - Guillaume

Pages: [1] 2 3 ... 44
Should I report a bug, or can you please look into it?


Hi Simon,

I carried some tests as you suggested and I still don't get the trigger (Break) whilst it's counting down.

See the example below:


I defined a statemachine diagram to simulate in the interpreted mode.
When I entered a state, a variable value is set e.g. this.waitingTime = 10 and decreased until reaching 0, triggering another state and associated waiting time.

I initially wanted to run a "sleep" function but didn't find anything.
Currently this is a self transition that exits and enters the state with an effect: this.waitingTime--;
There's another outgoing transition when this.waitingTime reaches 0 to move to the next state.
Note: I tried to use operations (Do) with a Behavior code that also decreases the value but it's only executed once.

On one state I want to have a trigger that lets the user leave this state. Unfortunately this trigger is not available when executing the simulation. It seems that the simulation engine does not have time to provide this waiting trigger as it keeps changing the state.

Is there any workaround?

Bugs and Issues / State machine manual simulation and substates
« on: October 08, 2018, 11:56:45 pm »

I'm reviewing EA state machine simulation functions, starting with the manual simulation.
I noticed that my system state machine didn't let me choose  the next trigger when more than one outgoing transition is defined on a state. I eventually figured out that using a transition out from a state that contains a state machine breaks the manual simulation.
Consider the following:
Initial -> OFF
OFF -> ON via the "on" trigger
ON -> OFF via the "off" trigger
ON has a state machine with STOP, PLAY, PAUSE. I have a 2 transitions from PLAY: Stop and Pause.

The manual simulation only prompts to choose between Stop & Pause to leave the "ON.PLAY" state if I delete the trigger to leave state ON to OFF.

Is there a way round to make this work, or is it a limitation in using the manual simulation?

Note: I found a solution in linking all ON substates to the OFF main state with the same trigger name (end states don't work). It doesn't look as clear as the original diagram but all scenarios work. It's similar to Sparx EA Example called "Nested Traces Example"

Thanks for the clarifications.
Consider a Hardware block, I wanted to have my SysML Block with a "Hardware" stereotype, and when I get the part's equivalent in the IBD, I would have liked to see this part with the "Hardware" stereotype as well.
As it currently stands, I have to differentiate the parts stereotype e.g. "Hardware part".

It's not a big issue and I'm keeping this approach based on your comments.

Hi Geert,

Sounds like a good idea except that I don't want the parts to have the tagged values set on the blocks.


I want to use let's say "MyType" stereotype on a number of elements e.g. a MyType SysML block and a MyType Part.
When I export the UML Profile, the resulting XML file is missing the parts' stereotypes definitions. It seems like EA doesn't like stereotype duplicates.

As a workaround I can create separate UML Profiles to embed in my MDG, but I was wondering if this is a known issue.

Note that I found that running a ReloadDiagram after the OnPostNewConnector in some instances makes EA crash.
I also tried running a SaveDiagram before and noticed it happens. I'm not sure there is a way to sort this so I unfortunately need to disable this automated diagram reload unless there's a way round.


With a script, I update an element on a diagram when a connector is deleted. I'd like to reload the diagram to see the changes.
However since the trigger event is caught before deleting the connector, doing this crashes EA.

When creating a new connector it works because the event is OnPostNewConnector.

It would have been nice to have a PostDeleteConnector with the diagram ID and some of the deleted connector's details like its type, stereotype, + source & target object ids so I can refresh the diagram.
The only way round I can think of is to create a fake element to trigger a reload but I don't really like that.

Any comments on addressing this scenario so the user doesn't have to save & reload manually?

Automation Interface, Add-Ins and Tools / Re: Help with deploying add-ins
« on: September 26, 2018, 12:28:21 am »
Hi Uffe,

Have you got an update on getting an EA Addin template available from VS?


I found a way that works ok:

newNotes= Replace(newNotes,chr(13),VbCrLf)
newNotes= Replace(newNotes,chr(10),VbCrLf)


I'm getting via  SQL query the t_connectortag.NOTES content that I need to copy to other records via a SQL update. I'm getting issues in the result as the Carriage Returns are not properly maintained.
I have a variable newNotes = node.selectSingleNode("./NOTES").Text that I use in
updateSQL = "update t_connectortag set notes = '"&newNotes&"' ....

Any idea on how to sort this out?

After further investigations, it appears that tagged values order cannot be changed under groups (it's always alphabetical)


I have 20 tagged values in a stereotype separated by Tag Groups.
The order you move a tag to a group defines the resulting order in the stereotyped elements.

I found the _tagGroupings attribute on the extended metaclass (Class for instance) with this list as the initial value. So I thought I could edit the order with the ; separated list. Unfortunately this list reverts back to where it was as soon as I open the Profile Helper.

I was wondering if there's an easier way to update the order of the tags under each group.


I found a solution in updating the ea_guid first part to match a genuine stereotyped connector in t_connectortag for each tagged value via a script.

A bit cumbersome though...

Pages: [1] 2 3 ... 44