# Flowable Optimistic Locking Exception when performing suspend,cancel and activate process actions

**URL:** <https://forum.flowable.org/t/flowable-optimistic-locking-exception-when-performing-suspend-cancel-and-activate-process-actions/5667>\
**Category:** Flowable Engine\
**Created:** [March 19, 2020, 6:19am UTC](https://forum.flowable.org/t/flowable-optimistic-locking-exception-when-performing-suspend-cancel-and-activate-process-actions/5667 "2020-03-19T06:19:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ameer](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Ameer](https://forum.flowable.org/u/Ameer)\
**Post date:** [March 19, 2020, 6:19am UTC](https://forum.flowable.org/t/flowable-optimistic-locking-exception-when-performing-suspend-cancel-and-activate-process-actions/5667/1 "2020-03-19T06:19:11Z")

</div>

Hi Team,

im developing a springboot application to process inputs.

@controller class consists of 4 end points

1.createProcess()  
this end point is to start the process , input file will be passed as parameter  
i have 20 + service task defined in bpmn.xml, made all service task “flowable:async=“true”

2.suspendProcess()  
this end point is to suspend the process , processInstanceId passed as param parameter

3.activateProcess()  
this end point is to activate the suspended process , processInstanceId passed as param parameter

4.cancelProcess()  
this end point is to cancel the process , processInstanceId passed as param parameter

one @service class created to process above all 4 requests.  
flowable RuntimeService is autowired in this class.

there is no issues with 1.createProcess() end point. able to start the process

but when rquest reaches to other end points im getting below exception.

org.flowable.common.engine.api.FlowableOptimisticLockingException: Execution[id ‘09f7f5fd-676e-11ea-b9c2-0050568e1cce’] - activity ‘phase2-execute’ - parent ‘09f732a4-676e-11ea-b9c2-0050568e1cce’ was updated by another transaction concurrently

im not able to suspend or cancel or activate the suspended process.

kindly help me to resolve this issue.

Thanks  
Am
