Hi,
Good to hear that it was of help for you :happy:. Now if you want to put any constraint for a stringList/documentList I do not think webMethods 6.5 has any such feature like that but I feel that it can be done indirectly if that supports your design.
Suppose there is an IS document Container and it has a structure like a string named size in it and a documentList/stringList named valueList in it. Now you are concerned about constraining the number of values of valueList. Now consider a flow service flow1 for which you need an input as valueList but take the input similar to as described structure of Container. In the I/O tab click on Container/size. As described earlier go to the Property pallet and click Content type. Select int{…} and click customize as described earlier. Now navigate down to the parameter pattern and add 6rows in it. If suppose you just want to allow 6inputs in your list then add 6 rows and give values 1, 2, 3, …6 in the six rows respectively. This means that it will only allow size=1|2|3|4|5|6 and no other value. Finally check the validate input checkbox and save.
Now if you are invoking flow1 inside some other IS service flow2 you can use pub.list:sizeOfList to get the size of valueList you will pass before invoking flow1 and pass the output size in the input parameter Container/size. If the numbers of values passed are greater than 6 i.e. value of Container/size>6 the control will pass to Catch Block and using pub.flow:getLastError to fetch an appropriate error message.
Hope this will help you :rolleyes:.
Kind Regards,
Soumik G Biswas
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services