Hi, I would like to know if there is a way to share states between nodes.
For instance, one node transforms data based on validation rules and the last node of the graph need to know if one of the ealier node validations failed so the current node can do a specific task.
I could probably use the Graph properties or keep a state in the DB but I am wondering if there is a formal way to share states.
Hi,
this is usually solved by having a special field in the records which flow through your graph. For example an “isError” boolean field which would indicate validation error. You could modify the metadata of the data you’re validating and add the special field. Then you would set the field value during your validation. Example:
original data: NAME | SURNAME
after validation: NAME | SURNAME | false (i.e. no error)