Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Restricting wfts to either To Do *or* workarea use
System
I thought of something today, and though I'm sure a lot of you already knew this, I thought I'd blab about it anyway, since it's only taken me 3 freeking years to get it.
:-)
It has always bothered me (slightly) that there was no simple switch to set to say that wft X should only show up on the new jobs list (ie, after picking File->New Job) if the the context is inside the workarea. The other possibility is that the context is the To-Do screen. These are the 2 places where "New Job" shows up. But many wfts are written for use only from inside a workarea--how to avoid displaying them as an option when starting a job from the To-Do screen? Or, in fact, the reverse if ever needed--show a wft *only* from the To-do do context?
Turns out it's trivial: use the branch-list element in available_templates.cfg, like so:
<!-- ========================================================== -->
<template_file name='See only from To Do'
path='user_class/new_press_release.wft'>
<command_list>
<command value='new_job' />
</command_list>
<branch_list>
<branch value='^$' />
</branch_list>
</template_file>
<template_file name='See only from Workarea'
path='user_class/new_press_release.wft'>
<command_list>
<command value='new_job' />
</command_list>
<branch_list>
<branch value='/default/main/.+/WORKAREA/' />
</branch_list>
</template_file>
<!-- ========================================================== -->
et voila! Now only one of these shows up on the pick list, depending on your context. If the branch path is null, you're in the To-Do context. If not, you're in a workarea.
Sorry to bore the intelligent, but there's a small chance one or two others besides me might be new enough to WF to not know this yet...
Bob "Still learning, after all these years" Walden
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Find more posts tagged with
Comments
There are no comments yet