Workflow and ServiceDesk Community

 View Only
  • 1.  Workflow not advancing in debugger

    Posted Mar 27, 2012 03:32 PM

    I am building a workflow to automate our purchase order request process.  When I run it in the debugger, everything is working as it should until it comes to the END component.  It just seems to sit there and will not kick off the next dialog, which is set to be started by an email.  I have another workflow that works just fine once it's published, but when I run it in the debugger, I have the same thing happen.  I really need to be able to test this without having to publish it everytime, which is pretty much useless as far as debugging goes and will add about 4 years to my project as I teach myself workflow.  As far as I know, this only happened after upgrading to 7.1SP2. 

    This is the model I am working on.  The User Request works great.  The Embedded rule model just sends a confirmation email based on the information in the request.  I get that email, but then it ends.  



  • 2.  RE: Workflow not advancing in debugger

    Posted Mar 27, 2012 03:46 PM

    Look at the timer  in the upper right corner of the debugger screen. Everytime the system enters a new dialog box, the start time changes, so you have to pick the right time in order to see the changes that have occured.

     

    Also, make sure in the debugger settings you have enabled Debug into embedded models.

     

    Rob



  • 3.  RE: Workflow not advancing in debugger

    Posted Mar 27, 2012 03:55 PM

    Also, when you hit a dialog workflow component and it hangs, there's a task that needs to be worked before it can continue. You can either log into ProcessManager and work it manually, or you can get there through the debugger's Workflow Statistics tab (Current Processes will show 1 or more, click into it and you'll see a link that goes right to the task)

    Once the task is worked, the debugger will continue like normal.



  • 4.  RE: Workflow not advancing in debugger

    Posted Mar 27, 2012 04:50 PM

    tschenke

    I have run into this same exact thing, and it was the situation that reecardo discribed that ended up working for me.

    Also to get some addintional information about what is going on you can open the log viewer from Start >> All Programs >> Workflow Designer >> Tools >> Log Viewer 

    Sometimes you see false positives in the log viewer but alot of times you get really valuable information for the errors listed in this little app.

     



  • 5.  RE: Workflow not advancing in debugger

    Posted Mar 27, 2012 04:58 PM

    I have the Debug Into Embedded Models checked in the debugger.  The time in the corner never changes.  Again, it's just stuck at the end component inside the first dialog workflow.  When I go to the Workflow Statistic page in the debugger, I see that there is 1 current process.  When i click View, it shows me the tracking ID and gives me the option to View tasks, check Execution History, or Abort.  In the View Tasks option, it takes me back to my form but the data that was in my Carts in now gone.  And it just puts me back in the same spot.  Resubmit the form, and sit and wait. 



  • 6.  RE: Workflow not advancing in debugger

    Posted Mar 28, 2012 07:14 AM

    Always remember you have the option of logging into ProcessManager and working the task yourself while leaving the debugger running. Working the task to the end will make the debugger kick in again. However, using the debugger makes it a little easier:

    1. By the Current Processes, click View (see above)

    2. On the next screen, click View Tasks (see above - it's cut off but it should be there)

    3. On the next screen, click View (see above - it's cut off but it should be there)

    4. On the last page, close to the bottom, click the link for Dialog Page. This will launch a window for the task to be worked. Work the task, and the debugger should kick in again. Just remember to LEAVE THE DEBUGGER RUNNING during all of this.



  • 7.  RE: Workflow not advancing in debugger

    Posted Mar 28, 2012 02:07 PM

    I went through all of that an still could not get it to advance.  Then I went in to the workflow and noticed the the Is Dialog Start button was not checked there.  After checking that button, I was able to conitnue.  However thank you everyone for your responses.  They were all very helpful.