himo

Hi All ,

I want to ask About WorkFlow Foundation

If I have "Code Avtivity" which Performs Some Action , Then I have "Invoke WebService Activity" to invoke method , but the webservice not avialbe now and it will be show error Message and work flow will be either completed or Terminated

so now i want when i have any exception "error message " i dont want to terminate the workFlow and start it again ....i want to know if i can reapeat the action until the webservice is avialabe and User complete the actions without start the workflow from the startpoint ( the same instnaceId). is is possible how

thx all

hema




Re: Windows Workflow Foundation Asking

Alan Smith MVP

Hi,

You could place the WS call in a loop, so that the workflow will automatically retry the web service call untill the call is sucessful. One option could be to use a delay activity, so the workflow would retry after a peiod of time, another option could be to use the suspend activity so that the workflow would be suspended, and could be manualy resumed by an operator when the web service becomes available.

Regards,

Alan





Re: Windows Workflow Foundation Asking

himo

i want to thank u for ur reply

and it will help me so much

thx Alan

hema






Re: Windows Workflow Foundation Asking

himo

sorry because i write u again

but when i saw ur reply , i did example but there is a problem with me

now u told me make loop and use delay activity .......but "InvokeWebservice Acrivity" raises error when i cannot connect to the service and doesnnot let me any chance to loop again

so can u tell me exactly how can i solve this problem

hema






Re: Windows Workflow Foundation Asking

murk

You will need to add a FaultHandler to properly catch the exception without terminating the workflow. This thread should solve your exact problem.



Re: Windows Workflow Foundation Asking

himo

thx dear for ur reply

hema






Re: Windows Workflow Foundation Asking

himo

Sorry Alan

now i use "InvokeWebServiceActivity" ok

u told me put call wbservice in a loop ok

now i put this activity in "WhileActivity" ,,,but this activity muct take condition so how it retry automatically just as u said

and if there is a condition what is this condition

hema