diff -r ed38a9d04ca3 src/org/openbravo/mobile/core/process/ProcessHQLQuery.java
--- a/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java	Tue May 26 09:50:21 2015 +0000
+++ b/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java	Mon Jul 27 19:36:14 2015 +0200
@@ -15,6 +15,7 @@
 import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Map;
 
 import javax.servlet.ServletException;
 
@@ -43,6 +44,10 @@
     return ProcessHQLQuery.StrategyQueryScroll;
   }
 
+  protected Map<String, Object> getParameterValues(JSONObject jsonsent) throws JSONException {
+    return null;
+  }
+
   @Override
   public final void exec(Writer w, JSONObject jsonsent) throws IOException, ServletException {
     Query rememberQueryForErrorLog = null;
@@ -60,6 +65,7 @@
 
       int totalRows = 0;
       boolean firstQuery = true;
+      Map<String, Object> parameterValues = this.getParameterValues(jsonsent);
       for (String hqlQuery : getQuery(jsonsent)) {
         rememberQueryForErrorLog = null;
 
@@ -69,6 +75,11 @@
 
         final Session session = OBDal.getInstance().getSession();
         final Query query = session.createQuery(querybuilder.getHQLQuery());
+        if (parameterValues != null) {
+          for (String paramName : parameterValues.keySet()) {
+            query.setParameter(paramName, parameterValues.get(paramName).toString());
+          }
+        }
         rememberQueryForErrorLog = query;
 
         if (jsonsent.has("_limit")) {
