FIM Workflow custom activity - Get the workflow/set name

Hi,

How can I get the name of the workflow/set that triggered my custom activity?

I'm planning to make my custom activity to have diferent behaviour depending on the ResourceType, action(modify, create) and workflow/set name that "triggered" it

Many thanks,

DD

March 5th, 2015 2:18pm

CurrentRequestActivity Class has a property called CurrentRequest this class is available to you in your activity (See example) This returns a RequestType object which has a ManagementPolicyRules member which leads to the set(s) involved. It also has an ActionWorkflowInstances property 

However, what you are doing breaks the encapsulation of the activity. The activity should be like a black box to the admin -- feed in the same parameters in config and the same data at runtime and I get the same result. Having it depend on the workflow MPR or set makes that impossible. I would suggest separate workflow activities in different workflows. It will be cleaner encapsulation and make the life of the FIM admin easier.

    
Free Windows Admin Tool Kit Click here and download it now
April 24th, 2015 12:42am

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

Other recent topics Other recent topics