Skip to main content
1-Visitor
April 22, 2014
Question

Tally code for manual routing in workflow task

  • April 22, 2014
  • 4 replies
  • 2267 views

Hello,



We are on 10 M040. In a workflow task, I have added Manual routing (Approve & Dont Approve). Didnt user Manual Exclusive as users didnt want an option selected as default. Since it is Manual, they are forced to chose the routing option. I have the option to select both options too. We want to restrict to only one selection. Can someone provide me with a tally code that will throw an error if both routing options are selected and they try to complete the task.


Regards,

Rajesh Balasundaram

4 replies

10-Marble
April 22, 2014
You can set it so the default is not selected.

In wt.properties set com.ptc.windchill.enterprise.workitem.dataUtilities.setDefaultRoutingEvent to false

I have this set in my site.xconf, then propogated it to wt.properties.

<property name="com.ptc.windchill.enterprise.workitem.dataUtilities.setDefaultRoutingEvent" overridable="true"&lt;br"/> targetFile="codebase/wt.properties" value="false"/>

Steve D.
22-Sapphire I
April 22, 2014
We've done this also (set to not selected by default).
Nicely solves the problem you describe and allows using the normal routing approach in all WF Tasks.
1-Visitor
April 22, 2014
Use Manual Exclusive.
Create a dummy routing option. Have the dummy select by default
In dummy options Transition throw an exception if routed to dummy option.

This will force the user to explicitly select a routing option.

Hope this helps

David
1-Visitor
April 22, 2014
Worked perfect Steve. Thanks for your valuable input.

Thanks!!

Rajesh Balasundaram
IT Site Leader/Windchill System Administrator
Optical Connectivity Solutions Keller Plant

Corning Optical Communications LLC
9275 Denton Highway
Keller, TX 76244

t 817 431 7337
m 817 676 2868
E-mail rajesh.balasundaram@corning.com<">mailto:rajesh.balasundaram@corning.com>