# Flowable retry count - Flowable engine

**URL:** <https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544>\
**Category:** Flowable Engine\
**Created:** [August 16, 2020, 1:26pm UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544 "2020-08-16T13:26:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.flowable.org/u/Karthik)\
**Post date:** [August 16, 2020, 1:26pm UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/1 "2020-08-16T13:26:58Z")

</div>

Hi,

I am using Flowable 6.5.0 and have created a spring boot application. I have set the DB and am able to run my flowable app correctly. I have created a service task with asyn as true. I have a requirement where i need to retry a task n number of times and raise an BPMN error for the nth time. Could you please let me know how i can get the retry count for a service task. if i can get the retry count, then i can check this in the catch block and when the time is reached, i can throw an BPMN error.

Thanks  
Karthik

---

<div class="post-metadata">

**Author:** ![Robinyo](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Robinyo](https://forum.flowable.org/u/Robinyo)\
**Post date:** [August 16, 2020, 9:28pm UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/2 "2020-08-16T21:28:28Z")

</div>

See:

- [How to insert a FailedJobRetryTimeCycle to a service task using modeller](https://forum.flowable.org/t/how-to-insert-a-failedjobretrytimecycle-to-a-service-task-using-modeller/3672)
- [Retry configuration is not maintained](https://forum.flowable.org/t/retry-configuration-is-not-maintained/3660)
- [Add failedJobRetryTimeCycle in flowable-modeler](https://github.com/flowable/flowable-engine/pull/2009)
- [Overcoming Common Hurdles In Flowable](https://medium.com/paloit/overcoming-common-hurdles-in-flowable-9e609c0c7531)

---

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.flowable.org/u/Karthik)\
**Post date:** [August 17, 2020, 9:44am UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/3 "2020-08-17T09:44:13Z")

</div>

Thank you @Robinyo . I had a look at these and implemented the retry mechanism but when the retry is triggered, i get an exception saying "FlowableException:unknown property used in expression ${instance of Service Task class name}. I have attached screenshot of my bpmn. ![Capture](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/3/33ca7f33f368fa0990af2fae950507ea05326a89.png)

I am unclear on the flowable exception as my retry is working now… Is there anything wrong in my approach.?

---

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.flowable.org/u/Karthik)\
**Post date:** [August 17, 2020, 1:33pm UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/4 "2020-08-17T13:33:27Z")

</div>

@Robinyo, @filiphr

Could you please give any pointers on the above issue.

Thanks  
Karthik

---

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.flowable.org/u/Karthik)\
**Post date:** [August 17, 2020, 5:43pm UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/5 "2020-08-17T17:43:27Z")

</div>

@Robinyo , @filiphr

I debugged the issue and could see what is happening. I have my spring boot application with flowable dependency added to it. I also have downloaded all the 5 flowable wars and deployed to a standalone tomcat container. The spring boot and wars point to the same database. When i do the testing in spring boot application and if the flowable wars are task / rest wars are up and running, then flowable task/rest throws the below error

**Unknown property used in expression: ${classname}**.

if i shutdown the standalone tomcat where i have deployed the 5 wars, then the retry mechanism works as expected. Could you please point me to the right direction on this as am kind of struck on this issue.

Thanks  
Karthik

---

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.flowable.org/u/Karthik)\
**Post date:** [August 18, 2020, 8:30am UTC](https://forum.flowable.org/t/flowable-retry-count-flowable-engine/6544/6 "2020-08-18T08:30:14Z")

</div>

I was able to resolve the issue on debugging it further. I had to set the flowable.async-executor-activate = false in flowable-task.war so that the process engine doesn’t pick the task and allows my spring boot app to handle it.

Thanks  
Karthik
