locked
stop current workflow RRS feed

  • Question

  • hi all,
    i have worlflow consist of many activities, i need to stop this workflow at condition inside the activity
    how to do that ?

    foreach(object HeartBeat in me.heart.Beats) messageBox.show("I miss u !!")
    Thursday, August 13, 2009 8:44 AM

Answers

All replies

  • Hi,

    There is a "Stop workflow" step in the workflow designer. So, in order to stop the workflow, just add any conditions you like and then add the last step from the list of steps - "Stop workflow".

    I hope that helps,
    Kuba
    -- Kuba Skałbania, Netwise
    Thursday, August 13, 2009 8:50 AM
  • i need to stop it in c# code
    because i have to make a query on database then decide to stop or not
    foreach(object HeartBeat in me.heart.Beats) messageBox.show("I miss u !!")
    Thursday, August 13, 2009 8:56 AM
  • i did it, i added CrmOutput  and checked the value in workflow designer.
    thank you Kuba..
    Thursday, August 13, 2009 9:32 AM
  • Hi, Dany.

    Check this url .
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    • Marked as answer by Dany85 Thursday, August 13, 2009 9:39 AM
    Thursday, August 13, 2009 9:34 AM
    Moderator
  • always Andriy present the best solution
    thank you Andriy .
    foreach(object HeartBeat in me.heart.Beats) messageBox.show("I miss u !!")
    Thursday, August 13, 2009 9:36 AM