WCF Workflow Services: How to query instances without tracking/promotion/persistence -


in our project considering wcf workflow services, new wf4. wonder if there way query instances of service? e.g. workflow instances waiting user action @ activity "abc"?

i read tracking , property promotion, wonder if there more generic way query running instances. think tracking/property promotion "optional" technical perspective, persisting instances.

i believe workflow host must able list activity instance in, or wrong?

private  void dumpstatemachine(workflowruntime runtime, guid instanceid)     {         statemachineworkflowinstance instance =                new statemachineworkflowinstance(runtime, instanceid);          console.writeline("workflow id: {0}", instanceid);         console.writeline("current state: {0}",                   instance.currentstatename);         console.writeline("possible transitions: {0}",                   instance.possiblestatetransitions.count);         foreach (string name in instance.possiblestatetransitions)         {             console.writeline("\t{0}", name);             txtnexttransition.text = name;             txtnexttransition.visible = true;           }     } 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -