6317be9408c1ab80fa207389e94705a426a571f5
[so.git] /
1 package org.openecomp.mso.bpmn.vcpe.workflow;\r
2 \r
3 import javax.ws.rs.Path;\r
4 \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
8 \r
9 \r
10 /**\r
11  * \r
12  * @version 1.0\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
16  * \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
19  */\r
20 @Path("/async")\r
21 public class WorkflowAsyncVcpeResource extends WorkflowAsyncResource {\r
22         \r
23         protected ProcessEngineServices getProcessEngineServices() {\r
24                 return pes4junit.orElse(ProcessEngines.getProcessEngine("vcpe"));\r
25         }\r
26 }\r