Comments (13)
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.
Sorry, problem still exists.
from pyxtuml.
Inadvertently closed...
from pyxtuml.
Okey, I need more information regarding expected output to pinpoint the error. I am unsure how to use your model compiler...
from pyxtuml.
Could you provide ground truth using the bridgepoint prebuilder?
from pyxtuml.
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.
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.
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.
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.
@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.
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.
Ah, great!
Let's keep the issue open until you or someone else can confirm that it is fixed.
from pyxtuml.
Verified pyxtuml pip update using python 3.8.5. Test case now passes.
from pyxtuml.
Related Issues (20)
- updates to prebuilder HOT 6
- pre-build fails when informal diagrams exist in project
- feature request: C and Java translation of templates HOT 3
- constant specification confused for enumeration HOT 11
- Prebuilder struggles with invocations of operations/functions via package reference HOT 13
- RuntimeWarning running pre-build with python 3.8 HOT 5
- Transient arrays are not supported? HOT 3
- Pyxtuml appears to have a limitation on function size. HOT 4
- Empty value in referential causes relationship to not be formalized HOT 4
- Add ooaofooa schema for BridgePoint 7 HOT 5
- CI with appveyor and travis out of date HOT 2
- Pyxtuml fails when a derived attribute is specified in a package-referenced class. HOT 2
- Remove special case for derived attribute field initialization HOT 3
- Pre-build does not include label for state machine actions
- pyxtuml allows creation of duplicate associations HOT 4
- Function evaluation in select...where causes assertion error. HOT 5
- Tests fail with Python 3.11 HOT 1
- Cannot import xtuml module
- persist links HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyxtuml.