Paste the following code into the entry event of your workflow step. Note that

4-46 Application Administrators Guide for Content Server with only the users who had not yet approved the content and any designated proxies. A token pulls the list of users out of the companion file and sets them as step users. Special workflow messages are sent to designated proxies while the content was sitting in the update step event. 3. Create a workflow Token ■ name: DynamicStepUsers ■ Token Code: if wfGetdsu wfAddUserwfGetdsu, user else wfAddUsersysadmin, user endif if wfGetdsa wfAddUserwfGetdsa, alias endif The token pulls a value for the custom variable dsu and dsa out of the companion file. If no value is found for dsu then the sysadmin user is added as a precaution. The initial values for dsu and dsa are listed in the entry event of the step. Users only : If you need to assign users to the steps, add the first contributor to the first step and the next step must include the first user plus the next user, user two.

4. Paste the following code into the entry event of your workflow step. Note that

comments are included through the entry code; remove the comments before inserting into your step: restartFlag=wfGetrestartStep See if we got here due to a restart for new backup users. If so, suppress notifications to old users and notify only new ones if restartFlag if toIntegerwfGetrestartStep=1 wfSetwfJumpEntryNotifyOff, 1 oooUsers=wfGetoutOfOfficeUsers if strIndexOfoooUsers,,=1 Check for multiple out of office users wfMessage=evalThe Following Users are out of the office: oooUsers \nYou are the designated backup for one of them.\n The content item dDocName is in the workflow step dwfStepName awaiting your review else wfMessage=evalThe Following User is out of the office: oooUsers \nYou are the designated backup for this user.\n The content item dDocName is in the workflow step dwfStepName awaiting your review endif rsMakeFromStringooou,oooUsers loop ooou userBackupName=row_Bkup wfNotifywfGetuserBackupName,user endloop wfSetrestartStep,0 endif else Managing Workflows 4-47 wfSetrestartStep,0 endif Set your step users here. Multiple users should be comma-separated, user names should be in quotes, metadata field references are unquoted. This example proceeds, using user names rather than aliases. Slight code re-working is required if using aliases. dynamicStepUsers= LIST USER NAMES IN QUOTES HERE if strIndexOfdynamicStepUsers,,=1 If there are multiple users specified check to see if any of the MULTIPLE users are out of the office rsMakeFromStringmultiDynamicUsers,dynamicStepUsers loop multiDynamicUsers if strEqualsgetValueForSpecifiedUserrow,uOutOfOffice,true If user is out of office, get their backup backup=getValueForSpecifiedUserrow,uOutOfOfficeBackup Replace out-of-office user in users list with their backup dynamicStepUsers=strReplacedynamicStepUsers,row,backup endif endloop else Check to see if the SINGLE user is out of the office if strEqualsgetValueForSpecifiedUserdynamicStepUsers,uOutOfOffice,true If user is out of office, get their backup dynamicStepUsers=getValueForSpecifiedUserdynamicStepUsers,uOutOfOfficeBacku p endif endif wfSetdsu,dynamicStepUsers Set the dsu variable into the companion file with listed and backup users

5. Paste the following code into the update event of your workflow step, removing