deletion of completed workflow instance is taking long time
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2012 06:11 AM
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
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
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2012 06:24 AM
Hello,
Logs are our friends 🙂
Please put a piece of your log file (catalina.out) here using the tags CODE.
Best regards.
Logs are our friends 🙂
Please put a piece of your log file (catalina.out) here using the tags CODE.
Best regards.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2012 06:54 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2012 01:30 AM
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. :?: :?:
May be something wrong with your script.
Is it working properly. :?: :?:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2012 06:42 AM
Yes it's working fine. The only issue I am having is it is taking long time. Can we make it fast?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2012 11:38 AM
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?
Each time you are passing the workflow id?
How you are grabbing that id? from where?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2012 05:50 AM
YES. I am passing the workflow ID every time. Getting the workflow ID from the "jbpm_processinstance" table.