lets i use the following code
WorkflowTaskQuery query = new WorkflowTaskQuery();
Map<QName,Serializable> properties = new HashMap<QName,Serializable>();
properties.set(QName.createQName("sec","creationDate"),new Date());
query.setCustomTaskProps(properties);
workflowService.query(query); // No Results returned although there is a tasks in the console has this value
another example about nodeRef
WorkflowTaskQuery query = new WorkflowTaskQuery();
Map<QName,Serializable> properties = new HashMap<QName,Serializable>();
properties.set(QName.createQName("sec","sender"),nodeRef.getNodeRefAsString());
query.setCustomTaskProps(properties);
workflowService.query(query); // No Results returned although there is a tasks in the console has this value