question

Raashid Mohammed avatar image
0 Likes"
Raashid Mohammed asked Matt Long commented

Zone partition using string exception limit

See attached model

The zone partition works for integer value. But does not work for string value

I am labels name type and typename

the zone partition by typename

in partition constraint I have number of tokens <= 1 but with one exception if partition value is "L3" the limit to 4 tokens instead of 1 in the Zone

for some reason it does not work

Please help I might be doing something wrong

Regards

Raashid

zonepartition.fsm

Choose One
zone
zonepartition.fsm (18.4 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

Adrian Haws avatar image
0 Likes"
Adrian Haws answered Matt Long commented

Raashid,

It looks like there isn't anything wrong with how you're setting up the partitions. The partitions are working, but the display in Zone Status->Partitions is showing an internal number (the ten digit number). If you go into the "Partition Tokens" tab, it does show the correct partition names.

The issue with the display has been fixed for the next update, which will come out in September.

· 5
5 |100000

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

Raashid Mohammed avatar image Raashid Mohammed commented ·

Hi Adrian,

If you run it for a bit you can see in the Zone the L3 is only 1 instead 4 tokens.

and also when I add L3, it automatically change to a node object rather than string and does not work

Regards

Raashid

0 Likes 0 ·
Adrian Haws avatar image Adrian Haws Raashid Mohammed commented ·

@Raashid Mohammed This looks like it may be a bug. I'll let the development team know.

0 Likes 0 ·
Adrian Haws avatar image Adrian Haws Raashid Mohammed commented ·

@Raashid Mohammed What's going on here is that it's trying to reference the node value of the queue called "L3", which happens to be the same name as the label you've set. Here's what you should put in the Constraint Exception:

concat("L3", "")
0 Likes 0 ·
Matt Long avatar image Matt Long Adrian Haws commented ·

I did make a change to the Partition Constraints so if you have an exception that is a string that is also the name of an object, you can type in "L3" and it won't try and convert it to an object, rather than using the concat().

1 Like 1 ·
Show more comments