I am trying to cancel Activiti workflow. I tried to call below service without forced argument. This results in deletion of workflow history from Alfresco database tables like ACT_HI_ACTINST,ACT_HI_PROCINST,ACT_HI_TASKINST
DELETE /alfresco/service/api/workflow-instances/{workflow_instance_id}?forced={forced?} To cancel call with no arguments, to delete set the forced argument to true.
Is there a service by which we can stop the activiti workflow without loosing the data from activity history tables.
as far as I know, the Alfresco workflow service only knows cancel/delete (with removal of history) or end as defined in the process. So, unless you implement a proper business end / cancel in your process, there is no way to do what you want and still retain history information.