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
Post a Comment