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:
-
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.
-
when specifying the
httpActivityBehaviorClassfield 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 theHttpActivityBehaviorImplclass. But then I getFlowableServiceException: Field definition uses unexisting field 'requestMethod' onerror.
Is there a way to make it compatible with the other applications?
Thanks in advance!
