How to call advanced query with UserTaskInstanceWithVarsDesc via BPM Suite kie-server-client REST API

Solution Unverified - Updated -


  • I have registered a custom query in JBPM using advance query. But facing some issue with the usage of the advance query
List<UserTaskInstanceWithVarsDesc> taskInstanceLogs = queryClinet.query("getTasksWithVars", UserTaskInstanceWithVarsQueryMapper.get().getName(), filterSpec, new Integer (0), new Integer (10), UserTaskInstanceWithVarsDesc.class);
  • I get "java.lang.ClassCastException: org.kie.server.api.model.instance.TaskInstance cannot be cast to"


  • Red Hat JBoss BPM Suite
    • 6.4
    • kie-server-client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In