1 package org.openecomp.mso.bpmn.vcpe.workflow;
\r
3 import javax.ws.rs.Path;
\r
5 import org.camunda.bpm.engine.ProcessEngineServices;
\r
6 import org.camunda.bpm.engine.ProcessEngines;
\r
7 import org.openecomp.mso.bpmn.common.workflow.service.WorkflowAsyncResource;
\r
13 * Asynchronous Workflow processing using JAX RS RESTeasy implementation
\r
14 * Both Synchronous and Asynchronous BPMN process can benefit from this implementation since the workflow gets executed in the background
\r
15 * and the server thread is freed up, server scales better to process more incoming requests
\r
17 * Usage: For synchronous process, when you are ready to send the response invoke the callback to write the response
\r
18 * For asynchronous process - the activity may send a acknowledgement response and then proceed further on executing the process
\r
21 public class WorkflowAsyncVcpeResource extends WorkflowAsyncResource {
\r
23 protected ProcessEngineServices getProcessEngineServices() {
\r
24 return pes4junit.orElse(ProcessEngines.getProcessEngine("vcpe"));
\r