cancel
Showing results for 
Search instead for 
Did you mean: 

deletion of completed workflow instance is taking long time

sredrouthu
Champ in-the-making
Champ in-the-making
Hi,

  I want to delete the completed workflow instances using webscript. I am able to delete the workflow instance successfully but it is taking long time(More than 8 hours for a single workflow instance). Using the following code. Can you help me with this?

var workflowId = "jbpm$30985"
var workflowInstance = workflow.getInstance(workflowId);
workflowInstance['cancel']();

Thanks in advance.


sredrouthu
6 REPLIES 6

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

Logs are our friends 🙂
Please put a piece of your log file (catalina.out) here using the tags CODE.

Best regards.

sredrouthu
Champ in-the-making
Champ in-the-making
Hi,

I don't see any errors in the log. Here are the println statements from the log which I have added in the webscript(js)

Mon Mar 19 2012 10:13:18 GMT-0400 (EDT) Start cancelling workflow……..jbpm$31429
Mon Mar 19 2012 18:06:18 GMT-0400 (EDT) End cancelling workflow……..jbpm$31429

Thanks

mitpatoliya
Star Collaborator
Star Collaborator
It is really strange.Because whatever may be the case it should not take that much time  :!: .
May be something wrong with your script.
Is it working properly. :?:  :?:

sredrouthu
Champ in-the-making
Champ in-the-making
Yes it's working fine. The only issue I am having is it is taking long time. Can we make it fast?

mitpatoliya
Star Collaborator
Star Collaborator
Are you using the same script which you have posted?
Each time you are passing the workflow id?
How you are grabbing that id? from where?

sredrouthu
Champ in-the-making
Champ in-the-making
YES. I am passing the workflow ID every time. Getting the workflow ID from the "jbpm_processinstance" table.
Welcome to the new Hyland Connect. Get started or submit feedback.