Logging errors to event viewer from custom workflow activity and invoking custom workflow from client application RRS feed

  • Question

  • Hi,

    I have created a custom workflow activity and have deployed it to FIM and it is working as expected. I have below queries:

    1. I want to log errors or information from my custom activity to event channels of FIM in the event viewer (not create my own channels in event viewer). Is it possible to do this? If yes, then how can we achieve this?

    2. This custom workflow is part of one MPR and is triggered as part of any change in the user's phone number. Is is possible to invoke this workflow from a console application or any external application and return status to that calling application?

    Thanks in advance for the help.

    Thursday, March 24, 2016 11:08 AM

All replies

  • 1. Yes possible. Same as any .net code. 2. Yes posible. Cant show how. Need to code if in order to show it.

    Nosh Mernacaj, Identity Management Specialist

    Thursday, March 24, 2016 11:58 AM
  • For #1, you can do this, you'll need to write to the FIM log. The issue is that you don't own that log, the event source, or the event ID namespace. You'd be much better off either pushing the events to the application log, or creating your own log for them.

    For #2, the answer is technically yes, but, the amount of work it's going to take to create a substitute workflow host isn't going to be worth it. What's the actual requirement you're trying to solve here?


    Consulting | Blog | AD Book

    Thursday, March 24, 2016 2:33 PM
  • Hi Brian,

    Thanks for your response.

    For #2, the actual requirement is I should be able to pass some data to Web service endpoints (Create, Enumerate) exposed by FIM service and that request has to trigger my custom workflow and from that custom workflow's activity I should be able to return some response back.

    Monday, March 28, 2016 8:47 AM
  • Hi Brian,

    Basically I wanted to know if it is possible to pass some response from the custom FIM workflow activity to the client program that submits the change request to FIM. The client program might be a simple console application.

    Tuesday, March 29, 2016 5:00 AM