Giter Site home page Giter Site logo

Comments (13)

john-tornblom avatar john-tornblom commented on July 26, 2024

This is addressed by 85cd66e, please confirm. For future correspondence, be aware that I cannot access https://support.onefact.net/issues/12006 (403 error).

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

Sorry, problem still exists.

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

Inadvertently closed...

from pyxtuml.

john-tornblom avatar john-tornblom commented on July 26, 2024

Okey, I need more information regarding expected output to pinpoint the error. I am unsure how to use your model compiler...

from pyxtuml.

john-tornblom avatar john-tornblom commented on July 26, 2024

Could you provide ground truth using the bridgepoint prebuilder?

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

Not sure what you mean by 'ground truth'. The following is an comment from onefact issue discussion:
This looks like a pyxtuml pre-builder issue.
The incorrectly translated statement:
relate f to b across R7.'phrase2';
resides in Foo/Fred::T1
In the SQL produced by the pre-builder, the id for this statement is: f48bcd02-5372-4b3b-86c1-8f82a7009c2d,
and the referenced relationship id in the relevant instance of ACT_REL is: 685b5061-66eb-4f56-bd42-5eb33ba689c4,
but this is the relationship ID for the Sup/Sub association in the other component, Test,
that just happens to have the same association number, R7, as the simple association
in the Foo component.
The correct relationship id for this statement should be: cc14f00a-1cf0-4327-919b-ba190c8a0011, and
it is never used in any action instances.

If you have Ciera installed, then run 'mvn clean install' on the project.
If you want to share screens with Skype, I can do that...

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

I can see in Tests.sql - which is input to Ciera - that, while two different instances of R! exist in two different components in the model, only one instance of ACT_REL_VALUES is present in the SQL file. There are two instances of R-REL-VALUES, each with attribute Numb = 1.

from pyxtuml.

john-tornblom avatar john-tornblom commented on July 26, 2024

Okey. In the test model you provided, there are two R_REL instances:

Widgets.xtuml: 76a3a4d4-4435-4aeb-93c4-dced55a9ffbf
Things.xtuml: bafa727f-8cd5-4784-93a8-4b92d68dd849

With running the following on current master:
PYTHONPATH=. python -m bridgepoint.prebuild /tmp/AdHocTests/ -o AdHocTests.sql

I get to folowing relate statement:

INSERT INTO ACT_REL VALUES (
    "962e0be0-a680-48b9-8ff6-916746b4ee90", -- Statement_ID : UNIQUE_ID
    "f80bd324-551d-40ca-b3c0-846c6111dd09", -- One_Side_Var_ID : UNIQUE_ID
    "a7bc402e-0b1a-41a8-841c-bc09ef7b1bde", -- Other_Side_Var_ID : UNIQUE_ID
    '''is on''', -- relationship_phrase : STRING
    "76a3a4d4-4435-4aeb-93c4-dced55a9ffbf", -- Rel_ID : UNIQUE_ID
    0, -- associationNumberLineNumber : INTEGER
    0, -- associationNumberColumn : INTEGER
    0, -- associationPhraseLineNumber : INTEGER
    0 -- associationPhraseColumn : INTEGER
);

I believe this is correct, no? If you get a different behavior, are you sure you are using current master?

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

This is correct: my previous message was misleading. There is only one 'relate' statement for R1 in the model - but there are two instances of R1 in two different components.
this:
select any menu from instances of Menu;
select any item from instances of Item;
relate item to menu across R1.'is on';
compiles as:
public void UpdateMenu() throws XtumlException {
Menu menu = context().Menu_instances().any();
Item item = context().Item_instances().any();
context().relate_( menu, item );
}
The relate_ is incomplete: by changing the other R1 to R2 and recompiling:
context().relate_R1_Item_is_on_Menu( item, menu );

from pyxtuml.

john-tornblom avatar john-tornblom commented on July 26, 2024

@leviathan747 how is pyxtuml integrated with this model compiler? Can you confirm if this is still an issue in current master, I am unable to reproduce the fault.

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

Apologies. My pyxtuml update apparently did not work - still running with python 2.7.
When I hand edited my installed pyxtuml with your 1-line change my test case compiles - and the SQL is now correct.
I am working on python upgrade and will repeat pyxtuml upgrade.
At that time I will close the issue - unless you want to do so now.

from pyxtuml.

john-tornblom avatar john-tornblom commented on July 26, 2024

Ah, great!

Let's keep the issue open until you or someone else can confirm that it is fixed.

from pyxtuml.

amullarney avatar amullarney commented on July 26, 2024

Verified pyxtuml pip update using python 3.8.5. Test case now passes.

from pyxtuml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.