I've tried the Hand on Labs for the WWF Beta 2, even for Lab-01, not clear/simple enough for me to understand the logics behind as it uses too many external activities and applications (without description). I've a couple of questions in mind after the lab and hope any of you can help.
After start a sequential workflow, how to:
1) Check the workflow status (completed or not)
2) How to get a return value from the workflow
3) Can we set use / load different workflow dynamically (determined by users, not at design time by developer)
Thanks in advance

General questions about WWF
rclakin
Charles,
Thanks for your help. I will study the sample in the SDK.
Anyway, nice to meet you.
Andy Ho
Emma321
1) Look at the Simple Sequential Workflow sample in the SDK. I think it's pretty much what you want.
2) It's at the runtime level but you can match the instanceId of the eventArg to the instanceId of the workflow you are interrested. You can also add your own event to any workflow.
3) The compilation I mentionned is the workflow compilation, not your application compilation (look at the WorkflowCompiler class). It is my understanding that the designed workflow will be a xoml file. Your app uses the WorkflowCompiler class to generate a DLL with the user-defined workflow. You load this DLL and you start the workflow class therein. (I didn't do this part yet in my project so I don't know how much work is involved. There is a sample in the SDK.)
Charles
pipemx
Charles,
Sorry to bother you again. I tried to follow the instruction from the Sample in the SDK. At the SimpleExpenseReport sample, the following line can't be compiled, do you know why
this.approveEvent.Invoked += new System.EventHandler<ExternalDataEventArgs>(this.approveEvent_Invoked);
Thanks.
Andy Ho
vsvinuraj
1) To track the status of events, register the events found in the WorkflowRuntime instance.
2) In the WorkflowCompleted event, you can access the workflow instance to get a property.
3) The workflow designer can be rehosted in your app. It can then be compiled within your app, and your users can then start these workflows.
Charles
Gotham
Charles,
First of all, thanks for your prompt reply.
1) Any example code for tracking the status If possible, a very simple application like this:
a) Run a workflow, input a parameter (such as $5000)
b) Track if it has been completed
c) Get the return value (Approved or Rejected)
2) The WorkflowCompleted event you said is at the Workflow level or Host application level
3) I see. But my point is can we add/load a new pre-designed workflow without re-compile the application
Don't want to waste too much of your time, do you have any good and simple tutorial resource for me to learn more about the WWF
Thanks.
Andy Ho