Brad did, however, agree to post the code on the condition that I supply the installation instructions. So here goes.
- Once you have the project saved to your hard drive, open it in Visual Studio and make sure you can Rebuild Solution. Note that we used Visual Studio 2008 to create the project, so that's a prerequisite. Let me know if you have any issues building the project. I ran into (at least) one pitfall that took a little out-of-the-box thinking to solve, but it should be fixed with this project, and I'll save that for another blog post. :)
- In the top-leve project folder, double-click the deploy.bat file. Pay attention to the output; you may have to edit the path to 'gacutil' if yours is in a different location. Also, on one of our VMs, the Identity Management service refuses to die right away, so I end up having to restart it from the Services snap-in.
- Note that this project contains Joe Schulman's public resource management client, so we'll have to merge its application settings from SampleApplication\app.config into our web service config file. Please follow the instructions in my earlier post to make the changes.
- Our Owner Rollup Activity uses a Filter Builder control, and there's a trick to making it render correctly. The trick is to copy the contents of the FilterBuilder.css file into your SharePoint Core.css file. I've already described this step in a previous post, so please follow those instructions and come back here when you're done.
- Now we have tell ILM 2 where to find the web interfaces for our activities (called ActivitySettingsPart). In this step, we'll be creating Activity Information Configuration objects. Once again, I've spawned off a separate post to reduce the clutter in this one. Please follow the instructions in that post and return here when finished.
- Finally, you'll have to run the deploy.bat file again in order for the changes we made in the last steps to take effect.
Now you should see the activities show up in the Activity Picker when you create a Workflow in the ILM 2 portal. I encourage you to experiment with the code, and feel free to leave me any comments on issues you run into or aspects that you'd like to see explained. Remember that when you make a change to the code, you'll have to repeat steps 1 & 2 above.
Have fun!
No comments:
Post a Comment