Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
WFB question
Tanuj
I have a good knowledge of writing custom workflows now I am trying to learn how to use workflow builder
can any one tell me how can i do this <succ v="__TAG__('require_legal');"/> using work flow builder as the transitions in the wfb do not allow to put any values.
The full user task code is pasted below. The reason I am doing this is that I am asking the user in the starting of the work flow if legal step is required. and this way i am able to skip thestep if user choose "no".
<usertask name="FirstApproval"
owner="__INSERT__($BusinessUser);"
description="Author Preview: __INSERT__($type);" readonly = "t">
<areavpath v="__TAG__('iw_workarea');"/>
<successors>
<successorset description = "Approve">
<succ v="__TAG__('require_legal');"/>
</successorset>
<successorset description = "ReEdit">
<succ v = "Edit"/>
</successorset>
<successorset description = "Cancel">
<succ v="Unlock"/>
</successorset>
</successors>
</usertask>
Find more posts tagged with
Comments
reddyl
Use an externaltask after the user to check for the require_legal value and branch to appropriate task depending on the value.
Adam Stoller
If you have good knowledge of writing custom workflows - you probably don't want to waste your time trying to learn how to use WFB (feel free to search through all the forum posts regarding this product -- you won't find too many posts in favor of it).
In this case, if I understand what you're trying to do - you really want conditional code within the WFT to determine what the successorset for your usertask should be - something like:
<template_script><![CDATA[
my $fasucc = (__VALUE__('require_legal') == 1) ? "LegalTaskName" : "NonLegalTaskName";
]]></template_script>
...
<usertask name="FirstApproval" ...>
...
<successorset description="Approve">
<succ v="__INSERT__($fasucc);"/>
</successorset>
...
</usertask>
Alternatively - if it's really a case of whether or not the Approve option should be there at all:
...
<template_script><![CDATA[
my $fasucc = '';
if (__VALUE__('require_legal') == 1){
$fasucc = qq(<successorset description="Approve">
<succ v="LegalTaskName"/>
</succesorset>);
}
]]></successorset>
...
<
...
<successors>
__INSERT__($fasucc);
<successorset description="ReEdit">
...
</successors>
...
</usertask>
...
I don't think there's an easy way to do this kind of thing in WFB
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com