NamedQuery is a query that is a reference to another query stored in the DataMap. It can hold named parameters that will be passed to the named query on execution.
Assuming that there a query called "Login" was previously mapped in the Modeler, we can do this:
String[] keys = new String[] {"loginid", "password"}; Object[] values = new String[] {"joe", "secret"}; NamedQuery query = new NamedQuery("Login", keys, values); List matchingUsers = context.performQuery(query);