Customer Portal

Running Graph with java

Comments 8

  • Avatar
    tchoua_12
    0
    Comment actions Permalink
    Hello,

    I am not an expert but it seams that you have a problem into the graph structure.

    Have you tried to run the graph example given with clover ?

    Regards,

    Tchoua
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    constructor TransformationGraph(String) creates new (empty) graph with given name. To read graph from xml file you have to use TransformationGraphXMLReaderWriter class (see javaExamples/testXMLGraph.java in example package).
  • Avatar
    elouan
    0
    Comment actions Permalink
    Thanks to both of you.
    It works fine with TansformationGraphXmlReaderWriter.
  • Avatar
    elouan
    0
    Comment actions Permalink
    Juste another question :
    Do I have to initialize the plugins, and Default before each Graph ?

    Thanks in advance.
  • Avatar
    avackova
    0
    Comment actions Permalink
    You have to initialize engine and plugins before you run a graph, so if you run more graphs from one application it suffices one initialization for all graphs.
  • Avatar
    elouan
    0
    Comment actions Permalink
    Thank you for your answer avackova.

    I have one more question, when i run the graph it ask me to use CheckConfig before.
    I do something like

    ConfigurationStatus statut = new ConfigurationStatus();
    graph.checkConfig(statut);


    But I'm not convinced it's the good way to do it.
  • Avatar
    avackova
    0
    Comment actions Permalink
    It is correct way, but it is not necessary to do it if you know your graph is configured properly. If graph configuration is not correct method init will throw ComponentNotReadyException. Method checkConfig was introduced for GUI support purposes.
  • Avatar
    elouan
    0
    Comment actions Permalink
    Thank you for all your answers.

Please sign in to leave a comment.