How can we get kSessions for specific packages using remote REST API ?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BRMS
    • 6.x

Issue

  • How can we get kSessions for specific packages using remote REST API ?

I can get a remote kSession thru rest, like as:

RemoteRestRuntimeFactory factory = new RemoteRestRuntimeFactory(DEPLOYMENT_ID, url, USER, PASSWORD);
KieSession ksession = factory.newRuntimeEngine().getKieSession();
  • How can I get remote kSessions for specific packages only, like as:
KieSession ksession = factory.newRuntimeEngine().getKieSession("My_Package");

Resolution

This can not be achieved with 6.0.x release by RemoteRestRuntimeFactory. If you need to use the jbpm execution server but just interacting with an specific package the only way is splitting the package in different projects.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.