Custom Tasklist Control (directive) that has access to process vars

Hi Camunda peeps,

I am creating a set of custom directives for use in the tasklist.
I have followed the users guide here and everything seems to b copasetic.

But, I want my custom controls to be able to interact with the Camunda process engine.
Am I correct in assuming I need to add a camAPI module dependency in my controller and then use the camAPI library to interact with the backend?

Just want to make sure I am not barking up the wrong tree.

Thanks,
Greg

Hi Greg,

if you want to interact with the process engine, you need to use the REST API. The camAPI module uses the camunda-bpm-sdk-js to make these REST calls. So yes, using the camAPI to communicate with the engine is correct.

Theoretically, you could just call the REST endpoints yourself with pure Javascript, but you would lose some nice functionality like session-timeout handling or configuration of the endpoint location that is included in the camAPI module.

Does this help you?

Cheers
Sebastian

1 Like

Hey Sebastian, exactly what I was after.
Thanks,
Greg