Add this line to your OScript code: scheduler.debugbreak()
Callbacks that occur from C/C++ don’t work with regularbreakpoints.
Jason
From: eLink Discussion:Development Discussion [mailto:development@elinkkc.opentext.com] Sent: Thursday, March 15, 2007 4:48 PMTo: eLink RecipientSubject: Breakpoint pausing a workflow task causes workflow execution tofail
Breakpoint pausing a workflow task causes workflow execution to fail
Posted by ynagorny (Nagorny, Yurie) on 03/15/2007 05:46 PM
I am trying to debug a workflow task on Livelink 9.6 The issue that I keep having with executing workflow tasks under debugger is that once a breakpoint is hit, the debugger activates as expected, but the web page is immediately updated wiht the message: Livelink Error: Error performing Workflow operation. [Error finishing workflow step.] and, apparently, the transaction in which the workflow task was executing prior to the breakpoint is rolled back, thus resulting in the workflow step to fail even if you just hit Go button in the debugger. Is there a way to have the system wait for the debugger to exit rather then detect a problem as soon as the breakpoint is hit? I don't have this issue when debugging LLNodes, or WebNodes, or any other part of the system that is not directly related to workflow. It seems to affect only when the topmost function on the call stack is Callback:WAPICallback. To reproduce the problem, simply put a breakpoint on WFMAIN:WF Root:WAPIPkg:SetTaskDoneData and start a workflow with the initiator step. As soon as you click the Send On button on the initiator step, the debugger will stop as expected, but the web page will show the error. Even if you click Go in the debugger, you will notice that Initiatior step has not completed. This behavior makes it impossible to use the debugger to find problems in workflow code since the active transaction is rolled back as soon as breakpoint is activated. I am working on a user defined WF task and I need the debugger to help me find problems with it. Thank you, Yurie
[To reply to this thread, use your normal E-mail reply function.]
Discussion:
Development Discussion
Livelink Server:
Knowledge Center
To Unsubscribe from this Discussion, send an e-mail to unsubscribe.development@elinkkc.opentext.com.