Customer Portal

How to pass between nodes variable number of fields

Comments 3

  • Avatar
    dpavlis
    0
    Comment actions Permalink
    I am not sure what you are trying to do, but if you need to move
    large amounts of data between nodes, put the content into BYTE field or CBYTE (compressed) field.

    Also, have a look at http://wiki.cloveretl.org/doku.php?id=c ... _constants as you will probably need to change RECORD_MAX_SIZE parameter.
  • Avatar
    alexey
    0
    Comment actions Permalink
    I require to transmit variable number of fields between custom nodes, e. g.:

    field names:
    ATTACHMENT_1
    ATTACHMENT_2
    ...
    ATTACHMENT_N

    How can I do this?
  • Avatar
    dpavlis
    0
    Comment actions Permalink
    Well, this is a bit tricky - with the current state of art in Clover. We work on making it standard part of Clover, but for now, I see two options:

    a) if you can pass the data in string form, then use one long string field and choose delimiter between individual values. You may then use internal transformation language to work with it - it has join( , <delimiter>) method which you may use for formating set of fields into string with specified delimiter and then split(<string>,<delimiter>) to get individual values from it.

    b) for large values, do something similar with BYTE/CBYTE type of field - this would need some transformations in Java to handle such data.

Please sign in to leave a comment.