Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outsourcing using xi:include is a one-way operation #85

Open
Bwooce opened this issue Aug 21, 2016 · 1 comment
Open

Outsourcing using xi:include is a one-way operation #85

Bwooce opened this issue Aug 21, 2016 · 1 comment

Comments

@Bwooce
Copy link

Bwooce commented Aug 21, 2016

Hi,

It looks like that if I use the xi:include option for outsourcing a state then it displays and saves okay, but on reloading can't find the included state and the whole graph becomes corrupted. It's 100% if I use the (now deprecated? removed?) src option to include states.

The problem may only appear when the included file doesn't exist (and contain the state referenced) but it doesn't fail gracefully.

Stack trace/Log:
Parsing file: /Users/bruce/start.scxml
add edge: start->[get_config]
add edge: get_config->[inital_greeting]
add edge: get_config->[end]
add edge: inital_greeting->[end]
add edge: inital_greeting->[recharge]
add edge: inital_greeting->[balance]
add edge: inital_greeting->[payment]
add edge: inital_greeting->[offer_transfer]
add edge: recharge->[end]
add edge: balance->[end]
payment.scxml
add edge: offer_transfer->[transfer_to_agent]
add edge: offer_transfer->[say_bye]
add edge: offer_transfer->[end]
add edge: transfer_to_agent->[end]
add edge: say_bye->[end]
Done reading file
Populating graph.
add edge ({<transfer_to_agent>}->{})to graph: transfer_to_agent-[,]->[end]
add edge ({<say_bye>}->{})to graph: say_bye-[,]->[end]
add edge ({<inital_greeting>}->{})to graph: inital_greeting-[,balance]->[balance]
add edge ({<inital_greeting>}->{})to graph: inital_greeting-[,recharge]->[recharge]
add edge ({<inital_greeting>}->{})to graph: inital_greeting-[,]->[end]
java.lang.Exception: Target 'payment' for edge: inital_greeting-[,payment]->[payment] not found.
at com.mxgraph.examples.swing.editor.fileimportexport.SCXMLImportExport.addOrUpdateEdge(SCXMLImportExport.java:569)
at com.mxgraph.examples.swing.editor.fileimportexport.SCXMLImportExport.populateGraph(SCXMLImportExport.java:551)
at com.mxgraph.examples.swing.editor.fileimportexport.SCXMLImportExport.readInGraph(SCXMLImportExport.java:471)
at com.mxgraph.examples.swing.editor.fileimportexport.SCXMLImportExport.read(SCXMLImportExport.java:504)
...

@fmorbini
Copy link
Owner

Hi, could you include an example and instructions to reproduce the problem?
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants