Custom Workflow Question
HelloI have two custom workflows one that's an authorization workflow that check the accountname against AD in the event a users name changes. The other workflow is an Action workflow that updates the accountname value if the authz one is sucessfull. Is there any way to pass results between these workflows ? right now I'm querry ad twice for the same info once in each workflow. I tried using workflow data but the workflow disctionary doesn seem to be shared accross workflows.
September 9th, 2009 4:52am

Hi Kevin,You can set an arbitrary attribute on the Request object (e.g. [//Request/AcctName]). I can't remember if it's preserved across AuthZ and Action workflows, but it's worth a shot.Good luck,Joe
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2009 7:28pm

Hi again. I just confirmed that it does work to store temporary, arbitrary attributes on the Request object. Hope this works for you.
September 9th, 2009 7:54pm

Thanks JoeI'm a little confused though. In my Authz workflow I can see where to set values to the WorkflowDictionary on the parent workflow but no method for a request. Do I need to bind to the request ? If so how ?Thanks
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2009 11:41pm

Right, you'll need to add a CurrentRequestActivity and bind to the CurrentRequest. this.GetCurrentRequest = new Microsoft.ResourceManagement.Workflow.Activities.CurrentRequestActivity(); // // GetCurrentRequest // activitybind13.Name = "ChangeAttributeActivity"; activitybind13.Path = "CurrentRequest"; this.GetCurrentRequest.Name = "GetCurrentRequest"; this.GetCurrentRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.CurrentRequestActivity.CurrentRequestProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13))); this.Activities.Add(this.GetCurrentRequest); Then you can add an arbitrary property to the Request. if (!CurrentRequest.ResourceProperties.ContainsKey(attributeName)) { CurrentRequest.ResourceProperties.Add(attributeName, new ResourcePropertyInfo(attributeName, type, false, false)); } CurrentRequest[attributeName] = final;
September 10th, 2009 12:00am

Thanks for the quick responses Joe. You saved me a ____ of a lot of time
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2009 12:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics