" ... practice makes perfect "      - stellentpmp aka Andrew
stellentpmp.blogspot.comContent Server

Saturday, February 12, 2011

Build a smarter workflow approval step

Even though workflow has its uses, it's pretty rough around the edges.  One thing that should be built in is recognition of its own approvers; meaning, it should be smart enough to skip any step if the dDocAuthor is one of the assigned approvers of the step.  Why should you needlessly approve your own content if you're one of its approvers?

Bypass this redundant workflow step by adding this token to it:                       +Expand

<$executeService("GET_ALIASES")$>
<$skipStep=0$>
<$aliasToUse="[AliasName]"$>
<$if rsExists("AliasUserMap")$>
    <$loop AliasUserMap$>
        <$if strEquals(AliasUserMap.dAlias, aliasToUse)$>


Just remember to change [AliasName] to an actual alias that exists in your system.

Good luck.

No comments:

Post a Comment