Tasklist plugin - historical data

Howdy,
My first post here.

I’m trying to make a tasklist plugin that has access to historical data, e.g. I’d like to get all activity instances for a process instance.

I see several ways to achieve that:

  1. Do it on the server side of plugin and send it to frontend. Here I see a problem with communication data flow, angularJS is not my forte.
  2. Access Camunda API directly through AngularJS. Once again, my angular ignorance (angnorance?) was my undoing here.
  3. Access Camunda REST API through AngularJS. This approach seems a bit roundabout.

I took a look at examples of plugins for camunda, however to no avail.

Did anybody make such plugin or now how to do it? I’d be thankful for guidelines and examples.

Cheers,
Mateusz

Hi @mpawlowski,

Have you checked how the Tasklist in the official Webapps is built: https://github.com/camunda/camunda-bpm-webapp/tree/master/ui/tasklist ?

Best,
Nikola

Thanks for the tip, I haven’t seen that before and there was some useful stuff there.
However the biggest help was this: https://github.com/camunda/camunda-bpm-sdk-js/tree/master/lib/api-client
It precisely shows how to use Camunda API with AngularJS.
Best,
Mateusz