Hi There,
I was wondering what are the different methods available in Camunda to call external API’s? Is the external task worker the only way? Is there an example I can reference? Thank you in advance.
Hi @Mike_Ninov,
the steps to run though an external service task are
- fetchAndLock
- complete
The endpoints are available in the Java API and in the REST API: https://docs.camunda.org/manual/latest/user-guide/process-engine/external-tasks/#working-with-external-tasks
The worker is a library that hides the explicit call to fetchAndLock and provides convenience function to run your business logic the worker has to do. And worker are avaiable in several programming languages: https://docs.camunda.org/manual/latest/user-guide/ext-client/.
You can find examples here: https://docs.camunda.org/manual/latest/user-guide/ext-client/#examples.
Other examples from the community can be found here: https://github.com/camunda/awesome-camunda-external-clients
Hope this helps, Ingo