question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Felix Möhlmann commented

How to categorize list based on 2 partition ID?


Hi Team,

I have to make partition in list based on 2 ID. I am facing error while writing as below:

1661518497052.png

1661518703978.png


Is there any way to do it?

Thank you!


FlexSim 21.1.5
listpartition idtwo
1661518497052.png (131.7 KiB)
1661518703978.png (18.1 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.

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

Either combine the two values into one (you would have to convert both to the same type, for example text). Or combine them by making an array out of them ([value1, value2, ...]).

1661522828933.png


1661522828933.png (60.1 KiB)
· 3
5 |100000

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

Ankur A3 avatar image Ankur A3 commented ·

Thank you! @Felix Möhlmann

But it is not pulling content after making partition in this way.

1661751968076.png

1661751996591.png

I would like to ask one more question if I can.

The reason I was looking for such partition so that I could compare it based on condition and content. For eg:

Initially list is full of content and at that time, token will be released based on content change event but it should not consider that it is to be exchanged with fresh lot because content is yet to be consumed. That's why I want to check it based on two condition before exchanging it with fresh lot. 1. Check for content 2. Check for availability (1 for fresh part and 0 for finished part)

My question is how to check partition content based on 2 condition?

Thank you!

0 Likes 0 ·
1661751968076.png (152.0 KiB)
Ankur A3 avatar image Ankur A3 commented ·

Hi @Felix Möhlmann,

Also, I tried using same partition id as the list is having.

1661755607137.png

But is is not pulling the token in this way.

Thank you!

0 Likes 0 ·
1661755607137.png (188.6 KiB)
Felix Möhlmann avatar image Felix Möhlmann Ankur A3 commented ·

The token on the left just left the source, so it wouldn't have the "Availability" label you are using in the PartitionID. If you either add that label or use a fixed value (0, 1) it should be able to pull entries as normal.

1661759797134.png

0 Likes 0 ·
1661759797134.png (7.2 KiB)