API: One-shot get

1
0
-1

Is it possible to, for example, instead of call "processAPI.getAssignedHumanTaskInstances" and then "processAPI.getActivityDataInstances" for each returned instance to have the instances response already filled with it's data?

Each of this calls make an HTTP request and I think it may add an unneeded overload sometimes.

Thanks in advance

1 answer

1
0
-1

Hi,

The extension mechanism for this use case is to implement a server Command and use the CommandAPI client side.

HTH
Romain

Comments

Submitted by cesar.ribeiro_1... on Fri, 11/27/2020 - 15:06

Thanks Romain.

I'm not aware of the extension mechanism. In this case, what the server Command should do?

Complementing: the jar mentioned in docs should stay in client side? How would the whole mechanism avoid multiple requests?

Thanks

Submitted by romain.bioteau on Sat, 11/28/2020 - 10:17

You can have a look at ExecuteBDMQueryCommand as an example, and here is the integration test that shows how to call the command client side.

The command implementation needs to be in the server classloader and can be registered client side using the commandApi.register method or can be always deployed if you want using the spring configuration

Notifications