Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Help with StopWork() and DeleteWork() Script!
Ami_Palombo__(mettra01user1(disabled))
I am a novice with WAPI scripts, but I do not know what I am missing. This script is executed when a WF step is completed and WAPI.StopWork and WAPI.DeleteWork are returning E668794887 via the debugger:Function Dynamic DeleteInvoiceWorkflow( \ Object prgCtx, \ WAPIWORK work, \ Integer workID, \ Integer subWorkID, \ Integer taskID, \ Integer returnSubWorkID, \ Integer returnTaskID, \ Dynamic extraData = Undefined )Integer retValue1Integer retValue2Dynamic retVal Object session = prgCtx.WSession()WAPIWORK workHandle = session.AllocWork()//is returning E668794887retValue1 = WAPI.StopWork(work, workID)retValue2 = WAPI.DeleteWork(work, workID)return (retVal)endAny help would be much appreciated!
Find more posts tagged with
Comments
There are no comments yet