Skip to Content
Dec 10, 2013 at 09:52 AM

UWL API : How to create CompoundExpression object



I am using following code line to fetch all UWL tasks in my custom WD Java DC: -

QueryResult queryResult = itemManager.getItemsForView(uwlContext, uwlView, null, null);

Now, I want to apply a filter in above method to fetch tasks only for certain UWL Connectors.

For example,

connectorId = myconnectorID#1


connectorId = myconnectorID#2


connectorId = myconnectorID#3

From my study so far about UWL API, I think we have to create & pass last parameter "CompoundExpression" in getItemsForView method above.

I am trying hard to find a way to properly instantiate this CompoundExpression object with correct condition & expression.

Could someone suggest any ideas about this?

Thanks & Regards,

Amey Mogare