Hi! I´ve just created a process model for invoices: first, the user fills the invoice fields, and then some checks are made in the process (logic nodes) to determine if the invoice is accepted or rejected (basically, if all the conditions apply then the field "status" of the invoice changes)
Now, I´ve added an interface to create invoice lines. And I was wondering how can I make a similar logic (apply conditions for each row and then change the invoice line "status" to "accepted"). I know how to do it for one row, but not how can I "iterate" and make all the invoice line created to "pass" through the conditions
Any help would be useful. Thanks a lot!
Discussion posts and replies are publicly visible
https://docs.appian.com/suite/help/23.3/looping.html
My question: Is the status of invoice items independent of the invoice status?
To begin, I would say that, if the invoice status is "Accepted", all the lines should be accepted too (maybe this is easier to obtain)
However, the good way to do it should be inversely (if all the lines are accepted, then the invoice is accepted, if not, it is rejected)
MNI or Looping , I strongly suggest Looping
Alright, thanks!
Finally I just decided to change an status (field) in each row of the matrix/array. What difference or additional steps should I use in the process model than when I change an status of a single row?
I´m using an script task and a write records Smart service