<?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 Re: Workflow assignments for REWORK_ASSINGEE in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/724065#M3779</link>
    <description>&lt;P&gt;At least some of your problems are caused by formatting resulting from pasting the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;// Assign participants from original or rework activity to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;rework role on the change team.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;// By doing so only those participants will get the next&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;rework tasks.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here you have a multi line comment that is broken up. The bold lines need to be commented as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 13:32:09 GMT</pubDate>
    <dc:creator>zsternal-2</dc:creator>
    <dc:date>2021-04-13T13:32:09Z</dc:date>
    <item>
      <title>Workflow assignments for REWORK_ASSINGEE</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/722982#M3776</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;
&lt;P&gt;Looking for some advice on Workflow expressions, I am attempting to customise the Workflow assignments as per the link below, I have added the REWORK_ASSINGEE to the roles, and the change team but when I run the syntax check I get the error below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also added the roles of rework and reworkRole to the system and change team without success&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you advise what I am missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am on Windchill 11.2.1.4&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.ptc.com/help/wnc/r11.2.0.0/en/index.html#page/Windchill_Help_Center/WCCG_BusLogicCust_WorkflowAdmin_ChangeAssignments.html" target="_blank"&gt;https://support.ptc.com/help/wnc/r11.2.0.0/en/index.html#page/Windchill_Help_Center/WCCG_BusLogicCust_WorkflowAdmin_ChangeAssignments.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking Syntax...&lt;/P&gt;
&lt;P&gt;WfExpression_5148.java:62: error: ';' expected&lt;/P&gt;
&lt;P&gt;rework role on the change team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;WfExpression_5148.java:62: error: ';' expected&lt;/P&gt;
&lt;P&gt;rework role on the change team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;WfExpression_5148.java:62: error: ';' expected&lt;/P&gt;
&lt;P&gt;rework role on the change team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;WfExpression_5148.java:64: error: ';' expected&lt;/P&gt;
&lt;P&gt;rework tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;4 errors&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Syntax check complete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:17:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/722982#M3776</guid>
      <dc:creator>dbailey-2</dc:creator>
      <dc:date>2024-03-15T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow assignments for REWORK_ASSINGEE</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/723868#M3777</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the code exactly as you have it entered in the workflow expression?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:08:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/723868#M3777</guid>
      <dc:creator>zsternal-2</dc:creator>
      <dc:date>2021-04-12T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow assignments for REWORK_ASSINGEE</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/724009#M3778</link>
      <description>&lt;P&gt;Hi Gravel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find below the syntax that I added is it taken from the support document verbatim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would note that i see in the Change task type there is attributes for the following roles but not the re-assignee role&lt;/P&gt;
&lt;P&gt;Name, Internal Name &lt;BR /&gt;Assignee, ROLE_ASSIGNEE&lt;BR /&gt;Reviewer, ROLE_REVIEWER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added the&amp;nbsp;re-assignee role to the change team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wt.project.Role reworkRole = wt.project.Role.toRole("REWORK_ASSIGNEE");&lt;BR /&gt;wt.project.Role participantsRole = reworkRole;&lt;/P&gt;
&lt;P&gt;java.util.Map&amp;lt;wt.project.Role, wt.fc.collections.WTSet&amp;gt; roleToParticipantMap;&lt;BR /&gt;// Try to get participants from the rework activity.&lt;BR /&gt;roleToParticipantMap = com.ptc.windchill.pdmlink.change.server.&lt;BR /&gt;impl.WorkflowProcessHelper.getActivityParticipants(&lt;BR /&gt;(wt.change2.VersionableChangeItem) primaryBusinessObject, &lt;BR /&gt;"Rework Change Notice Task");&lt;/P&gt;
&lt;P&gt;// If the map is null then the rework activity has not executed yet.&lt;BR /&gt;if (roleToParticipantMap == null) {&lt;BR /&gt;participantsRole = wt.project.Role.toRole("ASSIGNEE");&lt;/P&gt;
&lt;P&gt;// Try to get participants from the original activity.&lt;BR /&gt;roleToParticipantMap = com.ptc.windchill.pdmlink.change.server.impl.&lt;BR /&gt;WorkflowProcessHelper.getActivityParticipants(&lt;BR /&gt;(wt.change2.VersionableChangeItem) primaryBusinessObject, &lt;BR /&gt;"Complete Change Notice Task");&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;// Assign participants from original or rework activity to the &lt;BR /&gt;rework role on the change team.&lt;BR /&gt;// By doing so only those participants will get the next &lt;BR /&gt;rework tasks.&lt;BR /&gt;wt.fc.collections.WTSet participants = roleToParticipantMap.&lt;BR /&gt;get(participantsRole);&lt;BR /&gt;com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.&lt;BR /&gt;setChangeItemParticipants(&lt;BR /&gt;(wt.change2.VersionableChangeItem) primaryBusinessObject, &lt;BR /&gt;reworkRole, participants);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:14:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/724009#M3778</guid>
      <dc:creator>dbailey-2</dc:creator>
      <dc:date>2021-04-13T08:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow assignments for REWORK_ASSINGEE</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/724065#M3779</link>
      <description>&lt;P&gt;At least some of your problems are caused by formatting resulting from pasting the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;// Assign participants from original or rework activity to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;rework role on the change team.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;// By doing so only those participants will get the next&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;rework tasks.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here you have a multi line comment that is broken up. The bold lines need to be commented as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 13:32:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Workflow-assignments-for-REWORK-ASSINGEE/m-p/724065#M3779</guid>
      <dc:creator>zsternal-2</dc:creator>
      <dc:date>2021-04-13T13:32:09Z</dc:date>
    </item>
  </channel>
</rss>

