question

Anggoro P avatar image
1 Like"
Anggoro P asked tannerp commented

Label Assignment: Pulling item from list with a specified condition

Hi, @Mischa Spelt @steven.hamoen

I want to use event-triggered source to pull items in list: distribution center that have ProductAge more or equal to 5

Any idea how to set the label assignment?

Choose One
event-triggered source
c.jpg (37.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Joerg Vogel commented

@Anggoro P I'm not sure but have you made the process flow tutorials? Please do that first.

To pull from a list you use the pull from list activity. I'm not sure what you want with a event triggered source listening to a list.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Anggoro P commented

If you want to store more data of the list matching a query, you use a custom code and aTable.query on the list, before you pull anything. Then you "cloneTo" the result to a global table or table at a label node or you clone the result table into an array at a token label.

  1. Table result = Table.query("FROM Listname WHERE age > 0.3");
  2. Array data = result.clone();
  3. return data; // return in an assign label activity

Or a global table "ResultNew" or a table at a label node

  1. Table result = Table.query("FROM Listname WHERE age > 0.3");
  2. result.cloneTo(Table("ResultNew"));
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

If you want to pull more items, you build a loop and use the Max.Wait Timer. OnWaitTimerFired you release the token through another activity connection port.

pull-more-items-matching-list-attribut.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.