Problems with httpActivityBehaviorClass

Hey, I have two related questions.

We are using a http task to call a REST API which makes use of OAuth. Currently we are using a Groovy script to read a properties file for the secrets and a task to query an access token.
However this adds too much overhead. As a solution we found the httpActivityBehaviorClass field which we inject with a custom class. This class then takes care of requesting tokens.
This is working but there are two problems:

  1. the field injection can’t be changed from the Modeler UI, furthermore the UI even removes the field from the bpmn file. Is there a way to add this feature to the UI or to add a way to inject custom fields like can be done in the Service Task.

  2. when specifying the httpActivityBehaviorClass field this works for flowable-rest, but not for flowable-admin since this war doesn’t contain the full flowable engine.
    I thought of adding all jar’s to the lib folder but this doesn’t seem like a good idea.
    Another solution I tried was adding a dummy implementation of our custom class which doesn’t extend the HttpActivityBehaviorImpl class. But then I get FlowableServiceException: Field definition uses unexisting field 'requestMethod' on error.
    Is there a way to make it compatible with the other applications?

Thanks in advance!

1 Like

Is there a solution for the Ui Modeler ?

You are free to open an issue here and one of the devs might be able to get to it ahead of 6.5.0.

PR’s are also always welcome :slight_smile: