Home
%3CLINGO-SUB%20id%3D%22lingo-sub-974399%22%20slang%3D%22en-US%22%3ECreating%20a%20Workflow%20Activity%20Library%20and%20Activity%20Part%204%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-974399%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%20May%2017%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20This%20post%20is%20in%20continuation%20of%20the%20Post%20Creating%20a%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fconnector_space%2F2016%2F05%2F17%2Fcreating-a-workflow-activity-library-and-activity-part-3%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Workflow%20Activity%20Library%20and%20Activity%20Part%203%20%3C%2FA%3E%20This%20post%20will%20focus%20on%20Defining%20the%20activity%20sequence%20%3CBR%20%2F%3E%20Next%2C%20you%20define%20a%20sequence%20of%20activities%20that%20define%20your%20activity%20by%20using%20activities%20from%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20.%20You%20use%20the%20FIM%20CurrentRequestActivity%20activity%20and%20the%20Code%20activity%20that%20is%20defined%20by%20Windows%20Workflow%20Foundation%20(WF).%20You%20also%20bind%20the%20CurrentRequest%20property%20that%20you%20added%20in%20the%20code%20to%20a%20property%20of%20the%20ReadCurrentRequestActivity%20that%20you%20will%20create.%20%3CBR%20%2F%3E%3CH4%20class%3D%22subHeading%22%20id%3D%22toc-hId-1458697721%22%20id%3D%22toc-hId-1460486272%22%3ETo%20define%20the%20activity%20sequence%3C%2FH4%3E%3CBR%20%2F%3E%3CDIV%20class%3D%22subSection%22%3E%3CBR%20%2F%3E%3COL%20class%3D%22ordered%22%3E%3CBR%20%2F%3E%3CLI%3EClick%20the%20%3CSTRONG%3E%20RequestLoggingActivity.cs%20%5BDesign%5D%20%3C%2FSTRONG%3E%20tab%20on%20the%20workspace%20to%20open%20the%20workflow%20designer%20sheet%20of%20the%20RequestLoggingActivity%20custtom%20activity.%20If%20the%20tab%20does%20not%20exist%2C%20double-click%20%3CSTRONG%3E%20RequestLoggingActivity.cs%20%3C%2FSTRONG%3E%20in%20%3CSTRONG%3E%20Solution%20Explorer%20%3C%2FSTRONG%3E%20.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EDrag%20the%20activity%20%3CSTRONG%3E%20CurrentRequestActivity%20%3C%2FSTRONG%3E%20from%20the%20%3CSTRONG%3E%20FIM%20Activities%20%3C%2FSTRONG%3E%20tab%20of%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20into%20the%20workflow%20designer%20sheet.%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EDrag%20and%20drop%20a%20Code%20activity%20from%20the%20%3CSTRONG%3E%20Toolbox%20%3C%2FSTRONG%3E%20into%20the%20workflow%20designer%20sheet%20right%20below%20the%20previous%20activity.%20This%20activity%20is%20located%20under%20the%20%3CSTRONG%3E%20Windows%20Workflow%20v3.0%20%3C%2FSTRONG%3E%20tab%20in%20the%20toolbox.The%20design%20view%20of%20the%20RequestLoggingActivity%20should%20look%20like%20the%20following%20illustration.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3C%2FDIV%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-974399%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20May%2017%2C%202016%20This%20post%20is%20in%20continuation%20of%20the%20Post%20Creating%20a%20Workflow%20Activity%20Library%20and%20Activity%20Part%203%20This%20post%20will%20focus%20on%20Defining%20the%20activity%20sequenceNext%2C%20you%20define%20a%20sequence%20of%20activities%20that%20define%20your%20activity%20by%20using%20activities%20from%20the%20Toolbox.%3C%2FLINGO-TEASER%3E
Microsoft
First published on MSDN on May 17, 2016
This post is in continuation of the Post Creating a Workflow Activity Library and Activity Part 3 This post will focus on Defining the activity sequence
Next, you define a sequence of activities that define your activity by using activities from the Toolbox . You use the FIM CurrentRequestActivity activity and the Code activity that is defined by Windows Workflow Foundation (WF). You also bind the CurrentRequest property that you added in the code to a property of the ReadCurrentRequestActivity that you will create.

To define the activity sequence




  1. Click the RequestLoggingActivity.cs [Design] tab on the workspace to open the workflow designer sheet of the RequestLoggingActivity custtom activity. If the tab does not exist, double-click RequestLoggingActivity.cs in Solution Explorer .

  2. Drag the activity CurrentRequestActivity from the FIM Activities tab of the Toolbox into the workflow designer sheet.

  3. Drag and drop a Code activity from the Toolbox into the workflow designer sheet right below the previous activity. This activity is located under the Windows Workflow v3.0 tab in the toolbox.The design view of the RequestLoggingActivity should look like the following illustration.