Paul's profilePaul Galvin's SharePoint...BlogListsSkyDrive Tools Help

Blog


    May 18

    Logging Workflow Activity in SharePoint Designer

    Last week, I was working out how to loop and implement a state machine using SharePoint Designer and mentioned, as an aside, that I would probably write a blog post about better workflow logging.

    Well, Sanjeev Rajput beat me to it.  Have a look

    Saving log data into a custom list seems superior to using the regular workflow history:

    • It's just a custom list, so you can export it to excel very easily.
    • You can create views, dynamically filter the data, etc.
    • It's not subject to the auto-purge you get with regular workflow history.

    There are some risks / downsides:

    • Many running workflows with a lot of logging could cause too much data to be written to the list.
    • Maybe you *do* want automatic purging.  You don't get that feature with this approach (without coding).
    • Security is tricky.  In order to write to the list, the user must have permission to do so.  That means that it's probably not suitable for any kind of "official" audit since the user could discover the list and edit it.  This could be overcome with some custom programming.

    </end>

    Technorati Tags:

    Subscribe to my blog.

    Comments (1)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    Paul Galvin has turned off comments on this page.
    ThiNgwrote:
    Thanks for the compliments Paul,
     
    I appreciate you pointing out some of the downfalls - I'll add them as a link to my blog as well. I am trying to figure out a way to get around some of those issues as I type this. I am trying to make all of my application design without any custom code (one man show). For now, the very last process in the application, which closes the ticket, also contains the steps to wipe out all log history pertaining to the ticket. In my scenario, once the ticket is completed, I have no need for the workflow history. Any important steps (ie. who did what and when they did it) are stored in the lists, so I don't need to keep the entries for the individual workflow steps.
     
    Now to tackle the security problem...
    May 20

    Trackbacks

    The trackback URL for this entry is:
    http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!1092.trak
    Weblogs that reference this entry
    • None