Answered by:
stop current workflow

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
-
- Marked as answer by Dany85 Thursday, August 13, 2009 9:39 AM
Thursday, August 13, 2009 9:34 AMModerator
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, NetwiseThursday, 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 -
- Marked as answer by Dany85 Thursday, August 13, 2009 9:39 AM
Thursday, August 13, 2009 9:34 AMModerator -
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