Can I get error messages (or Exceptions) of graph executing?
Now I can get them only from a log. I write custom log appender, but may be can be other right way?
What about RunGraph component? Or if you run your graph from java code, you can use getLogger() method of TransformationGraph object.
Or if you run your graph from java code, you can use getLogger() method of TransformationGraph object.
“avackova”
getLogger returns object of class
org.apache.commons.logging.Log
It has only logging methods - debug, info, warn etc…
What I need to do with it to get Error Messages?
Hello!
I suppose you run a transformation graph on your own. Whenever a graph is finished you get a result, which is just enum with a final status - finishedOk/error/aborted. If the result is ‘error’, you can get cause exception and/or error message via watchdog class and its methods getCauseException(), getCauseGraphElement(), getErrorMessage().
Martin