index > Windows Workflow Foundation > Windows Workflow Foundation and Active Directory

Windows Workflow Foundation and Active Directory

Can I connect to Active Directory within the Windows Workflow Designer so I can add / assign a user to a certain Activity?


CG
NuTech
What would you like to do? Assign a AD User to an activity needs some explanation.
anderskj1

Hi anderskj1,

Maybe you ca advise me. I have downloaed some sample code but none are any way similar to what I want to do.

I want to implement a WorkFlow in ASP.NET using Windows Workflow Foundation.

I have a Web Form where user 1 fills in the form and submits it.

This form and the saved data is then sent to user 1's boss who reviews the data and submits the Web Form to his boss and so on and on until it goes to the top of the Organisation where it is finally approved or rejected.

Each time the form is subnitted an email is sent to the next person on the Organisation hierarchy letting them know that the Web Form is awaiting their approval.

I want to be able to implement this in the Process Designer.

Do you know of any examples out there that do something similar?

I was going to use AD to indicate in the Workflow which user gets an email etc.

(Note: I have'nt used WWF yet)

Thanks in Advance.




CG
NuTech

You should be able to use the ActiveDirectoryRole/ActiveDirectoryRoleFactory classes in System.workflow.Activities to get the manager for the current user. From the ExternalDataEventArgs, or a derived class, you should be able to get the identity of hte current user and then use that to create an ActiveDirectoryRole (not very intuitive naming I know) which will give you the method to get the manager.

I'd create a simple activity called GetManager that uses an input of the user identity and then has a dependency property for the manager. Your execute method would be where you do the lookup.

Matt




See What You Can Learn -- http://www.pluralsight.com/courses/IntroducingWF.aspx
Matt Milner - Pluralsight
reply 4

You can use google to search for other answers

 

More Articles

• What is the vision for XOML only workflows?
• Sending email notifications on state change in a workflow
• Event cannot be delivered
• Cloning activities in hosted designer for creating version of a w...
• Workflow aborted with SqlWorkflowPersistenceService
• What's the type activity to implement the AND-JOIN?
• Bound Dynamic properties not retained after save - Using Vihang D...
• sqlTrackingWorkflowInstance.Status = Forever.Running?
• LoadDesignerLayout problem
• DataExchangeService Attribute in Beta 2.2
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How to implement a PersistActivity or re
• web service workflow
• EventSink activity in WWF Beta 2
• ASP.NET and WF viable?
• Workflow with asp.net 2.2
• ASPNETStateMachineWorkflow.exe
• Interacting with different users based o
• Custom State activity needs custom State
• Restarting persistent worklow throws a m
• CreateWorkflow with xml reader is giving
• Bug: Missing permission on stored proced
• Examples of workflows using Office 2007?
• How to make an Activity appear like an i
• Windows workflow in ASP.Net
• Advice on hosting Workflows on Asp.Net?

Hot Articles

• ASP.NET and workflow foundation
• WWF crashes VS when publishing an empty
• Validation error symbol
• Interacting with different users based o
• Regarding Custom Activity
• Problem with custom CallExternalMethodAc
• about ui tool
• Persistence with Local Service (InvokeMe
• ASP.NET And a State Machine Workflow
• how to bulid WorkflowMonitor?
• Sharing same workflow instance with two
• adding the workflow runtime & servic
• Deriving Workflow classes...
• WorkflowMarkupSerializer read only worka
• Problem with Rules and comparisons on nu

Recommend Articles

• Attribute 'Class' not found error when d
• Installing WWF beta 2 on 64bit Windows XP
• State Machine SQL Tracking DB: How to fi
• Tracking EventArgs for HandleExternalEve
• problem with execution context and acces
• custom SequenceActivity - howto execute
• how to declare variables used by differe
• Long running with dehydration/rehydratio
• What if you don't know what interfaces w
• IfElse Activity in a While Activity
• sqltracking and sqlpersistenceservice
• WF RC2 and MOSS 2007 beta 2
• How to get Workflowinstance from a State
• Creating a sharepoint workflow task thro
• Workflow hangs after CallExternalMethod