<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Conditional Statement to tally voting for routing on multiple tasks in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195246#M23365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I urgently need help with a workflow.&amp;nbsp; There are two tasks launched in parallel, each with the routing option to either Approve or Rework.&amp;nbsp; I have an "AND" node which follows the tasks and then a conditional node in the workflow which asks the question:&amp;nbsp; If either task routing selection is for Rework, otherwise, Approve to move forward in the workflow.&amp;nbsp; The conditional statement doesn't have any syntax errors in it and looks like this:see below.&amp;nbsp; But it's not working.&amp;nbsp; Please be VERY specific with your response.&amp;nbsp; Do I need to create a variable?&amp;nbsp; Do I need to add "Route Choice" as a variable?&amp;nbsp;&amp;nbsp; I am desperate, and urgently need to complete this workflow and have it work ASAP.&amp;nbsp; Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WfAssignedActivity mySelf = ((WfAssignedActivity)self.getObject());&lt;/P&gt;&lt;P&gt;Vector userEvents = (Vector) mySelf.getUserEventList ( );&lt;/P&gt;&lt;P&gt;result = WfTally.any(self, "Rework", "Approved");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 11:35:44 GMT</pubDate>
    <dc:creator>mquayle-2</dc:creator>
    <dc:date>2018-05-02T11:35:44Z</dc:date>
    <item>
      <title>Conditional Statement to tally voting for routing on multiple tasks</title>
      <link>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195246#M23365</link>
      <description>I urgently need help with a workflow.&amp;nbsp; There are two tasks launched in parallel, each with the routing option to either Approve or Rework.&amp;nbsp; I have an "AND" node which follows the tasks and then a conditional node in the workflow which asks the question:&amp;nbsp; If either task routing</description>
      <pubDate>Wed, 02 May 2018 11:35:44 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195246#M23365</guid>
      <dc:creator>mquayle-2</dc:creator>
      <dc:date>2018-05-02T11:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement to tally voting for routing on multiple tasks</title>
      <link>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195247#M23366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The mySelf WFAssignedActivity is probably referring to the conditional node in which the code resides... which has no voting.&amp;nbsp; To do this by code you would need to reference each upstream activity and get the voting tally for each, then do some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also create a task variable in each and use transition code to tally for each assignment individually upon completion and pass to process variables (one for each assignment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest an alternate approach... connect a downstream "OR" node to the upstream activities, "Rework" option and then route accordingly.&amp;nbsp; Attach the "AND" node to the approve option of each upstream activity.&amp;nbsp; It's worth noting that this will route for rework when either upstream task completes with a Rework without the other being completed (IMO this is beneficial because why waste time approving something being reworked).&amp;nbsp; The uncompleted parallel task will disappear from the assigned User's task table but any links in notification emails will dead end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 01:48:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195247#M23366</guid>
      <dc:creator>kpritchard</dc:creator>
      <dc:date>2016-07-11T01:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Statement to tally voting for routing on multiple tasks</title>
      <link>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195248#M23367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example of this attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:22:45 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Conditional-Statement-to-tally-voting-for-routing-on-multiple/m-p/195248#M23367</guid>
      <dc:creator>MikeLockwood</dc:creator>
      <dc:date>2016-07-11T16:22:45Z</dc:date>
    </item>
  </channel>
</rss>

