Home
%3CLINGO-SUB%20id%3D%22lingo-sub-974306%22%20slang%3D%22en-US%22%3E(WAL)%20-%20Workflow%20Example%20-%20Create%20All%20Resource%20Set%20for%20a%20New%20Resource%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-974306%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Jan%2026%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EIn%20this%20Workflow%20Example%20we%20will%20demonstrate%20how%20to%20use%20the%20MIM%20WAL%20to%20build%20a%20Workflow%20that%20can%20be%20used%20to%20create%20a%20set%20in%20the%20FIM%20%2F%20MIM%20Portal%20that%20is%20an%20All%20Resources%20Set.%20When%20Creating%20a%20new%20Resource%20in%20the%20FIM%20%2F%20MIM%20Portal%20it%20is%20important%20to%20remember%20to%20create%20a%20Set%20that%20contains%20all%20of%20the%20resource%20that%20you%20just%20created.%20This%20step%20is%20often%20overlooked%20and%20although%20it%20is%20not%20difficult%20it%20could%20be%20automated%20with%20a%20simple%20workflow.%20Additionally%20this%20example%20demonstrates%20how%20to%20work%20with%20Filters%20in%20a%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EPrerequisites%3A%3C%2FP%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3ERead%20%3CA%20href%3D%22http%3A%2F%2Fblogs.msdn.com%2Fb%2Fconnector_space%2Farchive%2F2016%2F01%2F15%2Fthe-mimwal-custom-workflow-activity-library.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20The%20MIMWAL%20(Custom%20Workflow%20Activity%20Library)%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EAdd%20%22Forefront%20Identity%20Manager%20Service%20Account%22%20to%20the%20Administrator%20Set%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3ECreate%20an%20%22_All%20Resources%22%20Sets%20with%20the%20Criteria%20of%20Created%20Time%20after%201%20day%20ago%20(this%20is%20to%20ensure%20that%20the%20workflow%20will%20only%20be%20triggered%20for%20Resources%20Created%20after%20yesterday.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3CP%20style%3D%22padding-left%3A%2030px%22%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20style%3D%22padding-left%3A%2030px%22%3E%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EIn%20the%20FIM%20Portal%20navigate%20to%20the%20Workflows%20Page%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20New%3C%2FLI%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EEnter%20the%20name%20for%20your%20Workflow%20(I%20start%20all%20my%20workflows%20with%20an%20%22_%22%20which%20makes%20it%20easy%20to%20identify%20all%20non%20custom%20workflows.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EFor%20Workflow%20Type%20Select%3C%2FLI%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EAction%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CLI%3EFor%20Run%20On%20Policy%20Update%3C%2FLI%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E(Leave%20unchecked)%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%20style%3D%22padding-left%3A%2060px%22%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Next%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%20style%3D%22padding-left%3A%2060px%22%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Select%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EFor%20Activity%20Display%20Name%20type%20something%20like%20%22Create%20Resource%20Set%22%20or%20what%20ever%20you%20wish%20to%20call%20this%20activity.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EFor%20Resource%20Type%3C%2FLI%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3ESet%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CLI%3EFor%20Advanced%20Features%3C%2FLI%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E(Leave%20Unchecked)%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CLI%3EFor%20Attribute%20Population%20add%20the%20following%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CTABLE%20border%3D%221%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%3E%3CBR%20%2F%3E%3CTBODY%3E%3CBR%20%2F%3E%3CTR%3E%3CBR%20%2F%3E%3CTD%20valign%3D%22top%22%20width%3D%22359%22%3E%3CBR%20%2F%3E%3CP%3EValue%20Expression%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3CTD%20valign%3D%22top%22%20width%3D%22359%22%3E%3CBR%20%2F%3E%3CP%3ETarget%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3C%2FTR%3E%3CBR%20%2F%3E%3CTR%3E%3CBR%20%2F%3E%3CTD%20valign%3D%22top%22%20width%3D%22360%22%3E%3CBR%20%2F%3E%3CP%3E%22_ALL%20%22%2B%5B%2F%2FTarget%2FDisplayName%5D%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3CTD%20valign%3D%22top%22%20width%3D%22360%22%3E%3CBR%20%2F%3E%3CP%3EDisplayName%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3C%2FTR%3E%3CBR%20%2F%3E%3CTR%3E%3CBR%20%2F%3E%3CTD%20width%3D%22360%22%3E%3CBR%20%2F%3E%3CP%3E%22%3CFILTER%20xsi%3D%22%26quot%3B%26lt%3BA%22%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%3C%2FA%3E%22%20xmlns%3Axsd%3D%22%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%3C%2FA%3E%22%20Dialect%3D%22%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2F2006%2F11%2FXPathFilterDialect%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2F2006%2F11%2FXPathFilterDialect%3C%2FA%3E%22%20xmlns%3D%22%3CA%20href%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2004%2F09%2Fenumeration%26quot%3B%26gt%3B%2F%26quot%3B%2B%5B%2F%2FTarget%2FName%5D%2B%26quot%3B%26lt%3B%2FFilter%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2004%2F09%2Fenumeration%22%26gt%3B%2F%22%2B%5B%2F%2FTarget%2FName%5D%2B%22%3C%2FA%3E%3C%2FFILTER%3E%26gt%3B%22%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3CTD%20valign%3D%22top%22%20width%3D%22360%22%3E%3CBR%20%2F%3E%3CP%3EFilter%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%3CBR%20%2F%3E%3C%2FTR%3E%3CBR%20%2F%3E%3C%2FTBODY%3E%3CBR%20%2F%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%3CP%3EMake%20sure%20the%20entire%20text%20above%20in%20the%20Value%20Expression%20for%20the%20Target%20Filter%20is%20entered%20into%20the%20Value%20Expression.%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Save%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Next%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Finish%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EClick%20on%20Submit%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%3EPost%20Operation%20Steps%3C%2FP%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3ECreate%20Transition%20In%20MPR%20with%20using%20the%20%22_All%20Resources%22%20set%20that%20was%20created%20as%20part%20of%20the%20prerequisite%20steps%20above.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-974306%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Jan%2026%2C%202016%20In%20this%20Workflow%20Example%20we%20will%20demonstrate%20how%20to%20use%20the%20MIM%20WAL%20to%20build%20a%20Workflow%20that%20can%20be%20used%20to%20create%20a%20set%20in%20the%20FIM%20%2F%20MIM%20Portal%20that%20is%20an%20All%20Resources%20Set.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-974306%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecreate%20new%20resource%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecreate%20new%20set%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecustom%20workflow%20activity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on MSDN on Jan 26, 2016

In this Workflow Example we will demonstrate how to use the MIM WAL to build a Workflow that can be used to create a set in the FIM / MIM Portal that is an All Resources Set. When Creating a new Resource in the FIM / MIM Portal it is important to remember to create a Set that contains all of the resource that you just created. This step is often overlooked and although it is not difficult it could be automated with a simple workflow. Additionally this example demonstrates how to work with Filters in a workflow.


Prerequisites:



  1. Read The MIMWAL (Custom Workflow Activity Library)

  2. Add "Forefront Identity Manager Service Account" to the Administrator Set

  3. Create an "_All Resources" Sets with the Criteria of Created Time after 1 day ago (this is to ensure that the workflow will only be triggered for Resources Created after yesterday.






  • In the FIM Portal navigate to the Workflows Page

  • Click on New


    • Enter the name for your Workflow (I start all my workflows with an "_" which makes it easy to identify all non custom workflows.

    • For Workflow Type Select


      • Action


    • For Run On Policy Update


      • (Leave unchecked)








    • Click on Next






  • Click on Select

  • For Activity Display Name type something like "Create Resource Set" or what ever you wish to call this activity.

  • For Resource Type


    • Set


  • For Advanced Features


    • (Leave Unchecked)


  • For Attribute Population add the following


















Value Expression



Target



"_ALL "+[//Target/DisplayName]



DisplayName



"<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect" xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration">/"+[//Target/Name]+"</Filter>"



Filter



Make sure the entire text above in the Value Expression for the Target Filter is entered into the Value Expression.



  • Click on Save

  • Click on Next

  • Click on Finish

  • Click on Submit


Post Operation Steps



  1. Create Transition In MPR with using the "_All Resources" set that was created as part of the prerequisite steps above.