Avatar

Level 10

It is not a bug, but an implementation concern on collections.

For e.g lets take the assignment:  aListVariable = {a list of attachments}

Now, the list variable will not overwritten rather the items will be appended to the list;

So to get rid of this issue, try to follow my approach;

create two list variable of type document (say list1 & list2)

For a Assign Task activity set the following:

Attachment & Notes

Copy all attachments from = list1

Output attachments = list2

Place a Set Value component after the Assign Task and assign the following:

list1 = empty-list()

list1 = list2

list2 = empty-list()

Hope this will resolve your problem.

Nith