views:

31

answers:

1

Hi,

I'm building a small workflow application to test out the abilties of WF.
What i got so far:
Workflow example

I can run the workflow and add the parameter that is used in the StartProcess operation. So the flow goes through the first decision and comes to either Invoice payment or Creditcard payment.

The next part is my question:
When the flow reaches the Invoce Payment sequence the next activities are called:
Sub sequence

In this sequence I call a custom activity InitiateInvoicePayment which creates a new object for storing the invoice data. At this point I want the user to fill in the rest of the required data as shown as the receive activity but here is where i am stuck.

How can I stop the flow and wait for the users input, ideally trigger the client application to show a form based on a variable from the flowchart?

+2  A: 

The Receive activity is gong to pause the workflow for you, no big problems there.

The UI side is a little different. There are several ways you can go about that. Something I often do is write these UI requests to a database and have the UI poll the table for the data in there. That way the request to compete the invoice data will show up soon enough. And a big advantage is that you are independent of the client UI actually being active at the time. You can also use something more direct, like a WCF Send activity and have the UI application listen for requests as the workflow generates them.

Maurice
Thank you for the reply. Because it's just a proof of concept i don't really want to use a database. I found out another interresting option: Correlationhandle which serves the need for this POC.
Gerard