Which alternate methods are need in RHPAM 7 API for getTasksByGroup, getTasksOwned and signalEvent ?

Solution Unverified - Updated -

Issue

After migrating jBPM6.4 to RHPAM 7.11.0, the RHPAM API from java client code has changed.

@PostMapping(value = "/StartProcess", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@GetMapping(value = "/ClaimTask/{id}", produces = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/SignalProcess/{processDeploymentId}/{signal}", consumes = {MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/ClaimMultipleTasks", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/DelegateTask/{id}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/DelegateMultipleTasks", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/StartTask/{id}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/ReleaseTask/{id}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/CompleteTask/{id}/{operation}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = { "/StartAndCompleteTask/{id}/{operation}" }, consumes = { "application/json;charset=UTF-8" })
@PostMapping(value = "/taskList", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@GetMapping("/taskContent/{taskId}")
@PostMapping(value = "/abortTask/{parentProcessId}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/bulkAbort", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@PostMapping(value = "/completeWorkItem/{workItemId}", consumes = { MediaType.APPLICATION_JSON_UTF8_VALUE })
@RequestMapping(value = "/memoryStatus", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_UTF8_VALUE })

Alternate methods are need for the next one:

service.getRuntimeEngine().getTaskService().getTasksByGroup(countryList);
service.getRuntimeEngine().getTaskService().getTasksOwned(userName, null); 
service.getRuntimeEngine(deploymentId).getKieSession().signalEvent(signal, jsonInput, id);

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.11.0

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content