Hi,
I want to start a process instance using payload and the workflow connectors should take the payload and continue the execution.
I have explored on the webhook connector but after hitting the webhook API there is no response like process instance key / process started.
So, I explored on the start REST API of tasklist, Which provides process instance key. But if I provide any payload it gives
JSON BODY:
{
“variables”: {
“name”: “demo”,
“age”: 56
}
}
ERROR MESSAGE:
{
“status”: 400,
“message”: “JSON parse error: Cannot deserialize value of type java.util.ArrayList<io.camunda.tasklist.webapp.graphql.entity.VariableInputDTO>
from Object value (token JsonToken.START_OBJECT
)”,
“instance”: null
}
Could anyone help me regarding this issue?
Hi @Kayal_Vizhi - there are two ways to start a process with data:
- you can start a process using the Zeebe
CreateProcessInstance
gRPC endpoint or the new REST endpoint (only available in 8.6+), and send variable data with the request; - or you can use the Webhook Connector on your Start Event: HTTP Webhook Connector | Camunda 8 Docs
The webhook is more convenient for an external service that you don’t want fully authenticating to your Camunda cluster, as you can use different authentication methods for it. If your core application is making the call, the difference is really which one you feel is more convenient for you.
1 Like
Thank you @nathan.loding.
Issue resolved.
1 Like