Customer Portal

Run a Subgraph only if a condition is met

Comments 3

  • Avatar
    krizovav
    0
    Comment actions Permalink
    Hi,

    I'm sending a graph that should solve this issue. Basis is to convert the input files to hashes, which are compared with each other. There is a message, on the output port, which should be used in the body of email ("Files are OK" or "Files are not OK"). So you only need to replace Trash by EmailSender.

    Unfortunately, this solution will only work with file sizes up to 32 megabytes. If you want to work with larger files, you must change Engine Properties, specifically RECORD_LIMIT_SIZE and FIELD_LIMIT_SIZE, from default to desired size. Here you can find, how to do it: Engine Properties

    Or you can try this:
    The second solution is to use SystemExecute component and the command "comp" for windows or "diff" for linux.

    Please take a look at the graph below and try to use one of its parts.

    Hope this helps,
  • Avatar
    roxana
    0
    Comment actions Permalink
    Hi,

    You can also try to use a Reformat before EmailSender with conditions: " iif condition "x" is met, send this message, iif not -> send this message".

    Regards,
    Roxana
  • Avatar
    aditu1200
    0
    Comment actions Permalink
    Hi krizovav and Roxana,

    Both solutions worked like a charm.

    Thanks a lot for your help,
    Adrian

Please sign in to leave a comment.