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

Pages: 1 [2] 3 4 ... 19
16
General Board / Re: XML Schema Generation
« on: February 11, 2023, 04:49:29 pm »
@qwerty: May be I was not clear enough: I do not ask about a relation between UML and XSD. In my example model, the class Check has an association to itself. And its a zero-to-many relation. The XSD generator of EA translates my model to minOccurs="1" maxOccurs="1", while I expected minOccurs="0" maxOccurs="unbounded".

That is, the XSD generator of EA translates my model to a relation between the Check parent and its related Check children as if I had a one-to-one relation in my model. But that is not true. In the model it shows a zero-to-many relation between Check and itself. In the same way as there is a zero-to-many relation between the classes Check and Detail. The XSD generator translates that relation as I have expected. Why not for the Check:Check relation in the same way?

The question is: Is my understanding or model wrong or is the XSD generator of EA in error?

the image of the class diagram
I would love to show the model image here, but was not able to find a description, how the [img ][/img] markup works.

17
General Board / Re: XML Schema Generation
« on: February 11, 2023, 03:50:48 am »
As you may see, Geert, on the Check diagram the association contains zero-to-many (0..*).
This works fine in generation between two different classes but not in recursion.

To the model I have added a Detail table, Check table is the master. Both associations are zero-to-many, the recursive one and the one from Check to Detail.

The result is daunting. The zero-to-many in the recursion association is ignored. Instead a one-to-one association is generated:

Quote
<?xml  version='1.0' encoding='utf-8' ?>
<xs:schema targetNamespace="eu.ngong.Check" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="eu.ngong.Check" xmlns:ch="eu.ngong.Check">
   <xs:element name="Check" type="ch:Check"/>
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="1" maxOccurs="1"/>
         <xs:element ref="Detail" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Detail">
      <xs:sequence/>
   </xs:complexType>
</xs:schema>

I could not find an Multiplicity property other than at the Source or Target of an association. Do you mean a different one?

18
General Board / XML Schema Generation
« on: February 03, 2023, 02:13:17 am »
Seems like an error - or do I do something wrong?

I am trying to generate an XML Schema with an recursive element.
You may download a qea file that demonstrates my problem.

It generates
Quote
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="1" maxOccurs="1"/>
      </xs:sequence>
   </xs:complexType>
where it should generate
Quote
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>

Is that a flaw of the XSD generator in EA or my fault anyhow?

19
General Board / Repository Schema ER diagram
« on: January 25, 2023, 10:26:53 pm »
Is there a kind of ER diagram about the schema of the model repository?
I am currently trying to do an SQL query about the relation of a connector in a State Chart to a Trigger. I found the Tigger name in the PDATA1 field of the connector. However that may not be unique. I could not identify the Tigger Object_ID related to the Connector_ID in any other table.

20
General Board / Re: Start Page of a Project
« on: January 17, 2023, 05:54:48 pm »
Thank you for your patience, qwerty.
After I successfully applied the advice of Geert, I found out that I should not press Return when entering Default in the search field, but find the "Choose ..." item just above.

21
General Board / Re: Start Page of a Project
« on: January 16, 2023, 05:14:15 pm »
qwerty, the menu item "Start" does not have a search field on my screen. The EA icon item very left in the menu has one. Putting "Default" there adds the menu bar "Default Tools" to the menu, but nothing pops up where I can select "Current".

22
General Board / Start Page of a Project
« on: January 15, 2023, 10:55:43 pm »
Is possible to have a certain diagram that shows up automatically at the time when EA loads a project?

23
General Board / Re: Duplicate profile name
« on: January 08, 2023, 09:10:35 pm »
Super!
qwerty, you are completely right with your 2 analyses:
- if there is a profile as MDG technology with the same name as in resources, these profiles specify different stereotypes even though they have the same name
- EA is weird

I implicitly believed, that updating a profile via Specialize or via importing as resource would led to the same result. A warning would have been good at time of importing, not afterwards.

24
General Board / Re: Duplicate profile name
« on: January 08, 2023, 04:16:13 am »
sorry, qwerty, the Resources window shows the profile only ones.
Geert, I have the profile defined as a package in the using project itself. And I experienced differences (in overriding existing stereotypes) when I export to and import from xml compared to Specialize/Publish Technology/Import Package as UML Profile. Could be that these two different methods of importing a profile may have triggered the problem.

Now the problem is in the model.

Any idea to repair that and get rid of the Warning?
My last resort would be to export and import the model as XMI. As I am staying away from non-UML things, this should work. However, a less drastic method would be preferred.

25
General Board / Duplicate profile name
« on: January 07, 2023, 12:47:02 am »
WARNING: Duplicate profile name: MyProfile UML Profile, detected in technology ID: 22B21552-1

When opening this model, I get this message.
Yet, I can not find any problem with the model.
In Browser/Resources/UML Profiles and in Manage Technologies that profile appears only ones.
Is it save to ignore the warning?
Any idea to get rid of it?

Rolf

26
General Board / Re: ProCloud Server initial image generation
« on: December 07, 2022, 02:20:06 am »
@ea0522: super! (How could I miss to see that button?) JIT: I will show it in a few hours. Thank you.

27
General Board / Re: ProCloud Server initial image generation
« on: December 06, 2022, 11:39:59 pm »
@Modesto Vega, @philchudley:

You describe exactly my problem: I experienced (and it is specified that way) that the diagrams are generated for WebEA only when they are changed and saved. And there is no real warranty that diagrams are generated, when they are indirectly changed (new connection, changed name, changed stereotype, ...).

Therefore I am looking for an option like "Publish /Model Reports/HTML/Standard HTML Report" which generates all diagrams at once.

If you have an existing model with lots of diagrams and put it under ProCloud control, you do not see any diagram at all, using WebEA, regardless whether the client EA16 is configured to Auto Generate, or the EA Worker is configured. Both behave in the same way: The state of the diagram in the model is not compared to the state of the generated ones.

28
General Board / ProCloud Server initial image generation
« on: December 06, 2022, 05:49:23 am »
On the ProCloud server machine, when I copy an existing model to the C:\Program Files\Sparx Systems\Pro Cloud Server\Service\Models folder,
how can I initially generate all images?

29
General Board / Hybrid Scripting: How to change the Build Script?
« on: December 04, 2022, 05:09:59 am »
I downloaded automation.pdf and tried to do the Java Example of a model script.

However, on my computer there is a different Java JDK installed as expected by the example. I am using JDK-17.2 instead of 1.8.0.
Should not be a big thing, if I could find where to change the Build Script.

Or.: What do I have to read to understand what the Build link really does in the mentioned example?

30
General Board / Re: How to Clear Stereotype
« on: December 01, 2022, 10:37:33 pm »
Ok qwerty, sorry, you never mentioned t_ref, that I have looked for.

Would you mind to share your script doing the fix-/clean-up of stereotypes?

Pages: 1 [2] 3 4 ... 19