Workflow and ServiceDesk Community

 View Only
Expand all | Collapse all

Why does my DialogWorkflow just stop?

  • 1.  Why does my DialogWorkflow just stop?

    Posted Nov 03, 2011 04:31 PM

    Dear All,

    I have set up my workflow to include a Dialog Workflow and it is set up to send an email to a group of people and then for one of them to click upon the link and authorise the action. In debug, when I click upon the link, it brings up the right page and I click, "Accept", in debug, the process follows through the workflow, but then stops at the Accept End component.

    As far as I am concerned, I have attached the End component to the next component, so it should progress further, but it just sits there as stopped.

    What have I done wrong?

    Kindest regards,

    QuietLeni



  • 2.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 03, 2011 04:59 PM

    With a dialog workflow you might just be in the same session.  use the drop down on the right in the debugger to select the main session.   That should take you back to the main workflow.



  • 3.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 04, 2011 01:13 PM

    When the debugger encounters a dialog workflow component, it stops, basically waiting for a task to get worked.

    You can work the task by clicking the Workflow Statistics tab (last tab in the debugger). There should be a Current Process, so click View. On the next page, click View Tasks. On the next page after that, click View. Then click the URL for the Dialog page under Responses. Once the task is worked, the debugger should kick in again.

    You can also use ProcessManager to work the task, but its quicker (for me anyway) using the debugger.



  • 4.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 04, 2011 03:02 PM

    yliquor,

    Er, no... The workflow seems to have stopped, like it thinks that it has finished things, but there are further actions to do. I have got an Escalation configured on it and that seems not to execute, either!

    Ideas?

    Might it be some bad configuration of the Workflow Dialog?

    Is there a document about how to use this component that expains things properly, rather than saying things like "Enable - This enables the component"? It seems to be the biggest and most complex of all of the components, but I have not found much that explains how to use it.

    Just one thing, I SHOULD be seeing something happen inside this Component, shouldn't I?

    Kindest regards,

    QuietLeni



  • 5.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 04, 2011 03:56 PM

    reecardo,

    That is the process that I have been doing to run it in the debugger. It is much better than waiting for the email and things like that.

    I have three Workflow Dialogs. One is for receiving an initial request. The second one is for authorisation of the request. This Workflow Dialog has an escalation on it and a timeout configured, but no Finish elements. The third Workflow Dialog does not get executed at all because the second Workflow Dialog stops.

    Just checking, I should get an email from the third Workflow Dialog at the point that the second one is accepted, should I not? It just sits there.

    Do I need to enter anything into the Finish Process for this Dialog, because I have not needed to do this for any others?

    Have I made a schoolboy mistake?

    Kindest regards,

     

    QuietLeni



  • 6.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 04, 2011 04:38 PM

    Do you have anything setup in the "Start Process" for the two Dialog Workflows downstream of the initial Dialog Workflow? This is where you would put, for example, a Send Email component containing the ResponsePageLink in the body of the email for someone to kick off the process.



  • 7.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 04, 2011 05:34 PM

    Are you seeing any errors in the workflow under the Execution Log (grid) or Execution Log tab in the debugger? If you get an error and you don't have the correct error handling in place it will stop the workflow.



  • 8.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 04:25 AM

    Aryanos,

    No - there are no errors. It just looks like it is waiting for the next person to execute it via the Workflow Dialog Event Excution, but the debugger does not show this, either.



  • 9.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 04:31 AM

    matzebru,

    Yes, I have another Start Process with a similar workflow like the one that is failing...

    This is frustrating!

    QuietLeni



  • 10.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 09:04 AM

    Could you post a screenshot of where in your project it fails or package up the project and attach it to this post so we could look at it closer?



  • 11.  RE: Why does my DialogWorkflow just stop?
    Best Answer

    Posted Nov 07, 2011 09:21 AM

    matzebru,

    I found the answer to this issue. I had a look in the Log Viewer and found that the execution of the Start Process is logged there. The debugger seems not to be able to show that part. There was a bug in the next Workflow Dialog that caused an error and to stop sending the emails for the next process!

    So, to recap - debug does NOT debug Start Processes (or does not show them) and the only way to track this is using the Log Viewer...!

    Thanks for the input.

    Kindest regards,

     

    QuietLeni



  • 12.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 09:51 AM

    make sure you have the debug into embedded models turned on in the options of the debugger.   I sometimes don't have anything in my start or end processes and will put a demo component in them that just says Start or End so that I can see it went through them ok.



  • 13.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 12:45 PM

    yliquor,

    I have already set debugging into embedded models. It is standard for all of the debugging that I do...!

    Good idea.

    Regards,

     

    QuietLeni



  • 14.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 12:50 PM

    Debugging into embedded models is now the default as of 7.1 SP2



  • 15.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 12:58 PM

    reecardo,

    When is 7.1 SP2 to be out, then? I am panting at the thought!

    It was not showing the action in the next Workflow even with debugging into embedded models set, by the way. Should it have been?

    Kindest regards,

     

    QuietLeni



  • 16.  RE: Why does my DialogWorkflow just stop?

    Posted Nov 07, 2011 01:50 PM

    I can't recall off the top of my head when the release is, but we're on lockdown for it now. It's probably only months away, probably 1st part of new year.