Customer Portal

Java and Clover ETL integration

Comments 2

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    unfortunately you can't change the fileURL attribute in DataReader object; you need to create a new one, when you build a graph in java. When reading a graph from xml definition (ransformationGraphXMLReaderWriter.loadGraph(in, runtimeContext.getAdditionalProperties())), you need to change the fileURL attribute and read the graph again.
  • Avatar
    julrych
    0
    Comment actions Permalink
    You can also use parameters - in the reader, specify value of fileURL as a parameter ${FILENAME}. Then change the FILENAME property using
    graph.getRuntimeContext().addAdditionalProperty("FILENAME", newFilename);

    or
    graph.getGraphProperties().setProperty("FILENAME", newFilename);

Please sign in to leave a comment.