Skip to main content
How does the logical grouping behavior work with the K2ROM worklist criteria?

For example, if I need to set up the following filter: "(orgID = 1 or 2) and status = 3", how would I represent this with the criteria object?

It looks like it evaluates "ands" and then "ors", so the correct setup would be "orgID=1 and status=3 or orgID=2 and status=3". Can this be confirmed by somebody?

Also, is there a limit to the number of criteria items? I could potentially have a lot of orgID's (like 40 or 50). There's no way of doing an "IN", so I'm stuck contatenating a lot of stuff or doing numerous calls to the K2Server and aggregating the results on my side (assuming this is very inefficient). When I tried this, and hit somewhere around 20 criteria items, the worklist retrieval begins to fail with on some internal K2ROM array copy mechanism. I'm assuming I'm overrunning the length of some destination array build into K2. Any ideas on how to accomplish this?

THanks.
Be the first to reply!

Reply