Creating a Workflow Activity Library and Activity Part 2

Published 11-01-2019 02:35 PM 271 Views
Microsoft

First published on MSDN on May 12, 2016
This post is in continuation of the Post Creating a Workflow Activity Library and Activity Part 1 This post will focus on Adding FIM Out-of-Box Activities to the Toolbox


The following procedure shows how to add the FIM out-of-box activities to the Toolbox . Skip this procedure if there is already a tab in the Toolbox of your project that contains all the FIM activities from the ResourceManagement.dll assembly.

To create a FIM Activities tab in the toolbox



If the RequestLoggingActivity.cs [Design] tab is not already open, right-click the RequestLoggingActivity.cs file in Solution Explorer , and then click View Designer .
Click the RequestLoggingActivity.cs [Design] tab.
If the Toolbox is not open, on the View menu, click Toolbox .

You may wish to Pin the Toolbox to the left of the Screen by clicking on the Pin icon

Right-click Toolbox , and then click Add Tab . Rename the new tab FIM Activities .
Right-click the new tab, and then click Choose Items .

If using Visual Studios 2008 or earlier

    • In the Choose Toolbar Items dialog box, click the Activities tab


If using Visual Studios 2010

    • In the Choose Toolbar Items dialog box, click the System.Workflow.Component tab


If using Visual Studios 2010 or earlier


    • Click Clear to remove other activities from the tab.

    • Click Browse , and then browse to the Microsoft.ResourceManagement.dll assembly that is installed with FIM.

    • Select each check box next to the activities in the Microsoft.ResourceManagement.Workflows.Activities namespace that you want to include in the Toolbox . For information about which activities are supported, see Microsoft.ResourceManagement.Workflow.Activities .

    • Click OK .



If using Visual Studios 2012
Navigate to the location of the Microsoft.Resources.dll file (remember the default location of this file is "C:\Program Files\Microsoft Forefront Identity Manager\2010\Service", unless you are working with Visual studios remotely than you will need to navigate to the location where you have a copy of this dll)
drag the "Microsoft.ResourceManagement.dll" to Toolbox within the  "FIM Activities" Tab. (If Tab does not exist see beginning of this post.)

Once you have completed the steps to get the "Microsoft.ResourceManagement.dll" to Toolbox within the  "FIM Activities" Tab you will see it get populated with a bunch of controls

You now have a FIM Activities tab in the Toolbox . You can specify the sequence of activities that define your custom activity by dragging and dropping FIM activities from the Toolbox onto the design surface of that activity.
%3CLINGO-SUB%20id%3D%22lingo-sub-974391%22%20slang%3D%22en-US%22%3ECreating%20a%20Workflow%20Activity%20Library%20and%20Activity%20Part%202%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-974391%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20May%2012%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3EThis%20post%20is%20in%20continuation%20of%20the%20Post%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fconnector_space%2F2016%2F05%2F12%2Fcreating-a-workflow-activity-library-and-activity-part-1%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20Creating%20a%20Workflow%20Activity%20Library%20and%20Activity%20Part%201%20%3C%2FA%3E%20This%20post%20will%20focus%20on%20Adding%20FIM%20Out-of-Box%20Activities%20to%20the%20Toolbox%3C%2FP%3E%0A%3CDIV%20id%3D%22sectionSection1%22%20class%3D%22section%22%3E%3CBR%20%2F%3EThe%20following%20procedure%20shows%20how%20to%20add%20the%20FIM%20out-of-box%20activities%20to%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20.%20Skip%20this%20procedure%20if%20there%20is%20already%20a%20tab%20in%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20of%20your%20project%20that%20contains%20all%20the%20FIM%20activities%20from%20the%20ResourceManagement.dll%20assembly.%20%3CBR%20%2F%3E%3CH4%20class%3D%22subHeading%22%20id%3D%22toc-hId-1460483415%22%20id%3D%22toc-hId-1458545171%22%3ETo%20create%20a%20FIM%20Activities%20tab%20in%20the%20toolbox%3C%2FH4%3E%3CBR%20%2F%3E%3CDIV%20class%3D%22subSection%22%3E%3CBR%20%2F%3EIf%20the%20%3CSTRONG%3E%20RequestLoggingActivity.cs%20%5BDesign%5D%20%3C%2FSTRONG%3E%20tab%20is%20not%20already%20open%2C%20right-click%20the%20%3CSTRONG%3E%20RequestLoggingActivity.cs%20%3C%2FSTRONG%3E%20file%20in%20%3CSTRONG%3E%20Solution%20Explorer%20%3C%2FSTRONG%3E%20%2C%20and%20then%20click%20%3CSTRONG%3E%20View%20Designer%20%3C%2FSTRONG%3E%20.%20%3CBR%20%2F%3EClick%20the%20%3CSTRONG%3E%20RequestLoggingActivity.cs%20%5BDesign%5D%20%3C%2FSTRONG%3E%20tab.%20%3CBR%20%2F%3EIf%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20is%20not%20open%2C%20on%20the%20%3CSTRONG%3E%20View%20%3C%2FSTRONG%3E%20menu%2C%20click%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20.%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20213px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F153709iB9346413ED150E17%2Fimage-dimensions%2F213x350%3Fv%3D1.0%22%20width%3D%22213%22%20height%3D%22350%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3EYou%20may%20wish%20to%20Pin%20the%20Toolbox%20to%20the%20left%20of%20the%20Screen%20by%20clicking%20on%20the%20Pin%20icon%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20319px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F153710iCF859CD11D78139E%2Fimage-dimensions%2F319x291%3Fv%3D1.0%22%20width%3D%22319%22%20height%3D%22291%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3ERight-click%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20%2C%20and%20then%20click%20%3CSTRONG%3E%20Add%20Tab%20%3C%2FSTRONG%3E%20.%20Rename%20the%20new%20tab%20FIM%20Activities%20.%20%3CBR%20%2F%3ERight-click%20the%20new%20tab%2C%20and%20then%20click%20Choose%20Items%20.%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20395px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F153711i1C7428763806B535%2Fimage-dimensions%2F395x350%3Fv%3D1.0%22%20width%3D%22395%22%20height%3D%22350%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3EIf%20using%20%3CSPAN%20style%3D%22color%3A%20%23ff0000%3B%22%3E%20%3CEM%3E%20%3CSTRONG%3E%20Visual%20Studios%202008%20%3C%2FSTRONG%3E%20%3C%2FEM%3E%20%3C%2FSPAN%3E%20or%20earlier%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EIn%20the%20%3CSTRONG%3E%20Choose%20Toolbar%20Items%20%3C%2FSTRONG%3E%20dialog%20box%2C%20click%20the%20%3CSTRONG%3E%20Activities%20%3C%2FSTRONG%3E%20tab%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20using%20Visual%20Studios%202010%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EIn%20the%20%3CSTRONG%3E%20Choose%20Toolbar%20Items%20%3C%2FSTRONG%3E%20dialog%20box%2C%20click%20the%20%3CSTRONG%3E%20System.Workflow.Component%20%3C%2FSTRONG%3E%20tab%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20using%20Visual%20Studios%202010%20or%20earlier%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EClick%20%3CSTRONG%3E%20Clear%20%3C%2FSTRONG%3E%20to%20remove%20other%20activities%20from%20the%20tab.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EClick%20%3CSTRONG%3E%20Browse%20%3C%2FSTRONG%3E%20%2C%20and%20then%20browse%20to%20the%20Microsoft.ResourceManagement.dll%20assembly%20that%20is%20installed%20with%20FIM.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20each%20check%20box%20next%20to%20the%20activities%20in%20the%20Microsoft.ResourceManagement.Workflows.Activities%20namespace%20that%20you%20want%20to%20include%20in%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20.%20For%20information%20about%20which%20activities%20are%20supported%2C%20see%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fmicrosoft.resourcemanagement.workflow.activities.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20Microsoft.ResourceManagement.Workflow.Activities%20%3C%2FA%3E%20.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EClick%20%3CSTRONG%3E%20OK%20%3C%2FSTRONG%3E%20.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20using%20%3CEM%3E%20%3CSTRONG%3E%20%3CSPAN%20style%3D%22color%3A%20%23339966%3B%22%3E%20Visual%20Studios%202012%20%3C%2FSPAN%3E%20%3C%2FSTRONG%3E%20%3C%2FEM%3E%20%3CBR%20%2F%3ENavigate%20to%20the%20location%20of%20the%20Microsoft.Resources.dll%20file%20(remember%20the%20default%20location%20of%20this%20file%20is%20%22C%3A%5CProgram%20Files%5CMicrosoft%20Forefront%20Identity%20Manager%5C2010%5CService%22%2C%20unless%20you%20are%20working%20with%20Visual%20studios%20remotely%20than%20you%20will%20need%20to%20navigate%20to%20the%20location%20where%20you%20have%20a%20copy%20of%20this%20dll)%20%3CBR%20%2F%3Edrag%20the%20%22Microsoft.ResourceManagement.dll%22%20to%20Toolbox%20within%20the%26nbsp%3B%20%22FIM%20Activities%22%20Tab.%20(If%20Tab%20does%20not%20exist%20see%20beginning%20of%20this%20post.)%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20255px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F153712i20E7F8CABA3A3312%2Fimage-dimensions%2F255x326%3Fv%3D1.0%22%20width%3D%22255%22%20height%3D%22326%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3EOnce%20you%20have%20completed%20the%20steps%20to%20get%20the%20%22Microsoft.ResourceManagement.dll%22%20to%20Toolbox%20within%20the%26nbsp%3B%20%22FIM%20Activities%22%20Tab%20you%20will%20see%20it%20get%20populated%20with%20a%20bunch%20of%20controls%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20107px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F153713iD05C535E7300DD52%2Fimage-dimensions%2F107x350%3Fv%3D1.0%22%20width%3D%22107%22%20height%3D%22350%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3EYou%20now%20have%20a%20%3CSTRONG%3E%20FIM%20Activities%20%3C%2FSTRONG%3E%20tab%20in%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20.%20You%20can%20specify%20the%20sequence%20of%20activities%20that%20define%20your%20custom%20activity%20by%20dragging%20and%20dropping%20FIM%20activities%20from%20the%20Toolbox%20onto%20the%20design%20surface%20of%20that%20activity.%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-974391%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20MSDN%20on%20May%2012%2C%202016%20This%20post%20is%20in%20continuation%20of%20the%20Post%20Creating%20a%20Workflow%20Activity%20Library%20and%20Activity%20Part%201%20This%20post%20will%20focus%20on%20Adding%20FIM%20Out-of-Box%20Activities%20to%20the%20ToolboxThe%20following%20procedure%20shows%20how%20to%20add%20the%20FIM%20out-of-box%20activities%20to%20the%20Toolbox.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-974391%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAnthonyMarsiglia%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Feb 20 2020 01:07 PM
Updated by: