Cane we use the same steps in request handler?
Killing user's steps in the workflow Posted byPathak, PinkiOn 01/30/2017 09:06 AM Cane we use the same steps in request handler?[To post a comment, use the normal reply function]Topic:Killing user's steps in the workflowForum:Content Server Development ForumContent Server:Knowledge Center CS16
Hi Krishnankutty Nair,
Thanks for your reply.
Yes i have initialised the Work and PrgCtx and passing it in the FinishTask
Status = $WFMain.WAPIPkg.FinishTask( prgCtx, work, taskInfo[1] )
But it is giving me an error in the debugger ' errorfinishingtheworkflowstep'.
The code is executing the finishtask but with error.
Any idea what can be the possible cause.
Thanks.
Warm Regards,
Pinki Pathak
Hi Pinki,
Many times it is a rookie mistake. Why don't you echo out the success in builder or a log file and not put a break on the code?
Then if it works read the awesome discussion threads in old livelink forums.I have many in my blog
https://appukili.wordpress.com/2013/10/25/event-scripts-debugging/
Some from Ossie http://www.oscriptadventures.com/2013/03/observer-effect-quantum-physics-and.html
In an utsheel callbacks debugging are explained correctly by Jeff Lang (GCI,ex OT,guru WF ) in the workflow context.I doubt if that wil work in CSIDE.
I just do echoes when I know the code is right and I get the error finishing stuff.
Callbacks stop builder but the actual C++ has moved on that is the nerdy explanations
If you have tried without a debug and still doesnot work put connect logs and see if transcations are remaining open
Krishnankutty Nair a.k.a Appu
Hi Appu ,
Thank you so much for your reply.
My code was fine .. I did a very silly thing, there was one eventscript which run when Step is Done.
That eventscript was giving the issue and was causing the debugger to go in Hang mode.
Now it is working fine.
Thanks again for your quick help on Opentext portals.