I am trying to create a custom REST API in Camunda. My Camunda application is standalone and I want to create a custom REST API to complete task and send response.
I created a separate REST Project to create an endpoint which an external application can call and complete a task and get response back.
When I run this project, I get the following error .
Field engine in com.camunda.custom.rest.endpoint.service.TaskCompletionService required a bean of type 'org.camunda.bpm.engine.ProcessEngine' that could not be found.
I have another project where I have Camunda standalone application and I want my custom REST endpoint to act on the task of the workflow defined under this project:
My REST endpoint should look like this :
http://localhost:8088/engine-rest/api/completeTask
My questions are :
- Is it achievable to build a custom REST API endpoint in Camunda ?
- If so, How do I integrate my REST project and Camunda project together, so that they work together and give a response.
Please let me know what am I doing wrong in my approach ? Or is there any better approach to create a custom rest endpoint in Camunda ?
This is how I am trying to trigger the API from postman.
Thanks