locked
Long running custom activity in Dialog RRS feed

  • Question

  • Hi

    I've writen custom activity and use it in Dialog Process in Dynamics CRM 2011. It takes about 5-6 minutes to finish and during this time browser stays blocked. 

    Is it possible to fix my custom activity so that it reports an progress?

    Monday, July 15, 2013 8:26 AM

Answers

  • Hi,

    There isn't anyway of showing updates to a specific step - but you could perhaps start a child workflow in the dialog to free up the dialog process to proceed to the next step - the long running process would be in a workflow activity. The dialog could then check the progress of the workflow using another custom activity and not allow the user to start the next part of the dialog until it is completed. You would have to use a recursively called child dialog to prevent the process from continuing until the workflow had completed. Every time the user clicks next, the status would be checked and if not completed, start the dialog again.

    hth


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, July 16, 2013 2:00 PM
    Answerer

All replies

  • Hi,

    There isn't anyway of showing updates to a specific step - but you could perhaps start a child workflow in the dialog to free up the dialog process to proceed to the next step - the long running process would be in a workflow activity. The dialog could then check the progress of the workflow using another custom activity and not allow the user to start the next part of the dialog until it is completed. You would have to use a recursively called child dialog to prevent the process from continuing until the workflow had completed. Every time the user clicks next, the status would be checked and if not completed, start the dialog again.

    hth


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, July 16, 2013 2:00 PM
    Answerer
  • Аlthough not a natural solution, thanks for the thorough and comprehensive response.

    Regards

    Tuesday, July 16, 2013 3:47 PM