Multiple WebServiceOutputActivities

Is it possible to have multiple WebServiceOutputActivities in a workflow ?

My workflow could potenitally take a while to run so i want the option for the user to receive a response immediately while the workflow continues to run all its other processes, or just wait and receive a response at the end.

Only one of the 2 outputs will ever be hit.

[353 byte] By [MattDalton] at [2007-12-22]
# 1
Yes - you just have to make sure that in the design - only of them is guaranteed to be hit (like each on different branches of an ifelse activity)
JonFlanders at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

i have done that but it tells me that another output already refers to the input activity.

I see if i add them on opposite sides of ifelse branch it doesn't throw the error, but i have the response at the end of the workflow if the previous output was not called.

ie, i have an ifelse at the beginning that responds immediately if required. then i do my processing and have another ifelse that will repond if the user wanted to wait for a response.

Only one will ever get hit but the workflow doesn't seem to trust me that i wont respond twice. Can i override this ?

MattDalton at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3

Why can't you put the rest of your logic inside of the other IfElseBranch?

The answer basically is no.

JonFlanders at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 4

the same logic is excuted regardless of if the response was issued or not. i just have a branch at the top which reponds immediately. i then want to return to the same workflow logic and don't want to duplicate it on both branches.

i suppose my best option is to put the rest of the logic into its own workflow and call that workflow from both branches.

MattDalton at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified