Accessing current retry in Connector

I try to access the current retry value in a custom javascript implementation to throw a BPMN error when no more retries are left.

http-connector-reach-out-for-current-retry|690x425

Is there a way to achieve this?

Thanks

Do you have an async wait state on service task? I am not sure if we can really access retries in a output variable as output variable is created after the service task is been completed and any retries would have exhausted by then. It is worth looking into act_ru_job table

@harish_malavade, thanks for your reply!

Yes, I’ve checked the async-before-flag. Additional to that, as soon as I define an output variable like statusCode to move the condition check for the BPMN error to the listener the retry configuration is skipped.