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

Solution Unverified - Updated -

Issue

  • 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 org.jbpm.services.api.model.UserTaskInstanceWithVarsDesc"

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In