Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: gabygyyhi,
i want to create a decision node.
The story is like this:
we have a graph generic that is reading different files(same extension) with diferent no of columns and names.
For eg:
source file 1 aaa.txt has the columns:
aa,bb,cc,kk
Source file 2 bbb.txt has the columns:
aa,cc,dd,kk
We need to map almost always field bb to a new column ww.
As you can see there are some cases when column bb is not present as a column in the source file.
in this case we need to build something to work like this:
if column is available(we can use a metacheck node) then map bb to ww
if column is not available we need to extract value of bb from column kk and map this value to ww.
The logic nedeed must work individualy with any of the mentioned source files.
Note! any reference in the nodes to an non existing column will cause a failure to that node.
Please advise if someone already did this!