Customer Portal

Disabling a Node in Java.

Comments 1

  • Avatar
    mzatopek
    0
    Comment actions Permalink
    Hello Paul.

    Unfortunately disabling of components is not as simple as you maybe expected. Nonetheless your usecase is not impossible. Two suggestions:

    1) After graph initialization is almost completely impossible to change graph topology. Every changes have to be done before graph.init().

    2) Only node0.setEnabled("disabled") invocation is not sufficient. Please try to call this static method immediately after that:

    TransformationGraphAnalyzer.disableNodesInPhases(graph);

    which should remove all disabled components and their edges.

    In the future releases this invocation should be part of the graph initialization.

    Martin

Please sign in to leave a comment.