Task listener - call api

Can I call API after user task event done.
I want to call API route after user task completed, can I do this.

regards,

@AbdallahWasfy Welcome to the forum :partying_face:

Yes. You can configure task listeners to the event type = “complete” and it will get triggered once the task was completed.

https://docs.camunda.org/manual/7.15/user-guide/process-engine/delegation-code/#task-listener

2 Likes

@aravindhrs Thanks for your reply,
Can you tell me where can I define “voteRegisterListener” variable that was defined in Delegation Expretion Field.

regards,

@AbdallahWasfy Select the UserTask >>> Property Panel >>> Listeners

"voteRegisterListener’ is not a variable, it’s spring bean. You can even configure fully qualified Java class.