supernutters
Programmer
Hi All,
I am currently trying to auto-complete some parallel workflow steps using the WAPI.taskdone function via event scripts. When i run the event script through the livelink builder debugging mode, my event script runs fine. However, when i run my script normal, the WAPI.taskdone function throws an SQL error. I have turned on the database logs and found that this error is due to WAPI.taskdone trying to insert an entry into the wlock table so as to create a softlock. However, when the event script is run, an entry of the workflow is automatically put into the wlock table thus causing there to be a duplicate entry which causes the SQL error. The weird thing is also when run in debugging mode, no soft lock is done thus no error is thrown when run in debugging mode. Would any of the kind folks out there advise on an alternative way in which i can complete steps via event scripts. Do help out here as i am so stumppeedddddd.
Thanks!
Regards
Mark
I am currently trying to auto-complete some parallel workflow steps using the WAPI.taskdone function via event scripts. When i run the event script through the livelink builder debugging mode, my event script runs fine. However, when i run my script normal, the WAPI.taskdone function throws an SQL error. I have turned on the database logs and found that this error is due to WAPI.taskdone trying to insert an entry into the wlock table so as to create a softlock. However, when the event script is run, an entry of the workflow is automatically put into the wlock table thus causing there to be a duplicate entry which causes the SQL error. The weird thing is also when run in debugging mode, no soft lock is done thus no error is thrown when run in debugging mode. Would any of the kind folks out there advise on an alternative way in which i can complete steps via event scripts. Do help out here as i am so stumppeedddddd.
Thanks!
Regards
Mark