<?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: Reassign Life cycles within a workflow in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222560#M26653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tshepo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write result = "Completed" instead of result="Complete" this values are case sensetive also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Nov 2013 22:12:08 GMT</pubDate>
    <dc:creator>KD</dc:creator>
    <dc:date>2013-11-02T22:12:08Z</dc:date>
    <item>
      <title>Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222554#M26647</link>
      <description>Hi,I have a workflow that requires that the life cycle of an object be reassigned in some instances. Currently I have a task that gets sent to the relevant user notifying them that they must reassing the life cycle of the object. Is there a way that I could use a robot in the flow</description>
      <pubDate>Wed, 02 May 2018 14:15:42 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222554#M26647</guid>
      <dc:creator>TshepoMokhere</dc:creator>
      <dc:date>2018-05-02T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222555#M74973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use &lt;STRONG&gt;Method Robot&lt;/STRONG&gt; and set &lt;EM&gt;Robot Type &lt;/EM&gt;as "&lt;SPAN style="text-decoration: underline;"&gt;Set State&lt;/SPAN&gt;" - then select &lt;EM&gt;Specific State&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60291" class="jive-image-thumbnail jive-image" onclick="" alt="wf_editor.png" src="https://community.ptc.com/legacyfs/online/60291_wf_editor.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60323" class="jive-image-thumbnail jive-image" onclick="" alt="iviewcapture_date_28_10_2013_time_11_18_58.png" src="https://community.ptc.com/legacyfs/online/60323_iviewcapture_date_28_10_2013_time_11_18_58.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 10:22:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222555#M74973</guid>
      <dc:creator>IgorMeltzer</dc:creator>
      <dc:date>2013-10-28T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222556#M26649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;wt.lifecycle.LifeCycleHelper.&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt; font-family: Consolas;"&gt;service&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;.reassign(WTDoc, newLFRef);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;This will reassign new LC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Mani.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:34:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222556#M26649</guid>
      <dc:creator>ManikandanVelay</dc:creator>
      <dc:date>2013-10-28T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222557#M26650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Igor, thanks but, i don't want to set the state, I want to reassign the LC. meaning all nodes are reset. Currently this can be done via the actions menu on a WTObject that is associated to a LC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Mani, please explain the expression a bit for me. I entered it into an expression robot and I get the following 2 errors. I gather I need to create variable in my WF. What I have is subprocesses running based on the manufacturing plant selected. When the subs are done they leave the pbo in one of two states. Namely; Reopened or Completed. Now, I could't add a task to request a user to perform the reassign action, but I would rather have the system control that for obvious reasins of efficiency. Hence I want to reassign the LC and restart the wf automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.ptc.com/message/224630/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.ptc.com/message/224630/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:54:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222557#M26650</guid>
      <dc:creator>TshepoMokhere</dc:creator>
      <dc:date>2013-10-28T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222558#M26651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From screen shot it seems like you want to restart same workflow process i.e. set the state of POB to open so workflow will be trigger, in that case you can use set state robot to change state to Open (See screen shot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60329" class="jive-image-thumbnail jive-image" onclick="" alt="screen1.jpg" src="https://community.ptc.com/legacyfs/online/60329_screen1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If you want to reassign any other lifecycle then you can add below line &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16.0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black;"&gt;wt.lifecycle.LifeCycleHelper.&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-family: 'Arial','sans-serif';"&gt;service&lt;/EM&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black;"&gt;.reassign(primaryBusinessObject, LifeCycleHelper.&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-family: 'Arial','sans-serif';"&gt;service&lt;/EM&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black;"&gt;.getLifeCycleTemplateReference(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #2a00ff;"&gt;" UR LIFECYCLE Name "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black;"&gt;));&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;IMG __jive_id="60330" class="jive-image-thumbnail jive-image" onclick="" alt="screen2.jpg" src="https://community.ptc.com/legacyfs/online/60330_screen2.jpg" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;You can read the documentation related to API from below file &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;[Windchill_Home]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;/codebase/wt/clients/library/api/wt/lifecycle/&lt;STRONG&gt;LifeCycleService.html&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;Below are few method for reassigning lifecycle&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-IN" style="color: #7030a0;"&gt;1. &lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="color: #7030a0;"&gt;LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context) throws WTException, LifeCycleException&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;Parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;object -&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; the LifeCycleManaged object that should be assigned to a new life cycle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;lctRef -&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;context -&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; the container where the objects associated workflow processes will be created&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;2. &lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context, String comments) throws WTException, LifeCycleException&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;Parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;object&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - the LifeCycleManaged object that should be assigned to a new life cycle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;lctRef&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;context&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - the container where the objects associated workflow processes will be created&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;comments&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - Notes or comments for the lifecycle operation. Can be null.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;3. &lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) throws WTException, LifeCycleException&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;Parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;object&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - the LifeCycleManaged object that should be assigned to a new life cycle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt;lctRef&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-IN" style="font-family: 'Calibri','sans-serif';"&gt; - a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;4. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #7030a0;"&gt;reassign(WTList list, wt.lifecycle.LifeCycleTemplateReference lctRef, WTContainerRef context, State state)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;list&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; - the WTList of LifeCycleManaged objects that should be assigned to a new life cycle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;lctRef&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; - a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;context&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; - The container which the object resides in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;STRONG style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;state&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; - The state the objects in the lifecycle should be assigned when reassigned to the lifecycle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Also make sure that end flag will have only one input otherwise workflow process will keep running ( See screenshot ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Hope this helps !!! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shrey&lt;SPAN style="font-size: 10pt;"&gt;as &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:02:36 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222558#M26651</guid>
      <dc:creator>satre-2</dc:creator>
      <dc:date>2013-10-28T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222559#M26652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response, There one challenge, when the wf restart the assignee role resolves to wcadmin and not the initial creator of the object. how can I counter this and secondly the conditional connector I have before the last step works for the Reopen route and not the Completed route. What is wrong with my expression? See attached jpeg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.ptc.com/message/224655/" style="max-width: 1200px; max-height: 900px; float: left;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:58:08 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222559#M26652</guid>
      <dc:creator>TshepoMokhere</dc:creator>
      <dc:date>2013-10-28T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222560#M26653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tshepo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write result = "Completed" instead of result="Complete" this values are case sensetive also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 22:12:08 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222560#M26653</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2013-11-02T22:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222561#M26654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For reassign purpose once I wrote a method (It works for part only you have to modify it )which you can call from workflow with proper inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;  * Reassigning lifecycle template of the given WTPart object.&lt;/P&gt;&lt;P&gt;  * &lt;/P&gt;&lt;P&gt;  * @param part&lt;/P&gt;&lt;P&gt;  * the WTPart need to be reassigned&lt;/P&gt;&lt;P&gt;  * &lt;/P&gt;&lt;P&gt;  * @param lifecycleTemplateName&lt;/P&gt;&lt;P&gt;  * the LifeCycleTemplate name in which the given WTPart&lt;/P&gt;&lt;P&gt;  * will reassign&lt;/P&gt;&lt;P&gt;  * &lt;/P&gt;&lt;P&gt;  * @exception LifeCycleException&lt;/P&gt;&lt;P&gt;  * throws {@link LifeCycleException}&lt;/P&gt;&lt;P&gt;  * &lt;/P&gt;&lt;P&gt;  * @exception WTException&lt;/P&gt;&lt;P&gt;  * throws {@link WTException}&lt;/P&gt;&lt;P&gt;  * &lt;/P&gt;&lt;P&gt;  * @exception IOException&lt;/P&gt;&lt;P&gt;  * throws {@link IOException} by readTGSProperties method if&lt;/P&gt;&lt;P&gt;  * the file TGS.properties can't be found&lt;/P&gt;&lt;P&gt;  */&lt;/P&gt;&lt;P&gt; public static void reassignLifeCycle(WTPart part,&lt;/P&gt;&lt;P&gt; String lifecycleTemplateName) throws LifeCycleException,&lt;/P&gt;&lt;P&gt; WTException, IOException {&lt;/P&gt;&lt;P&gt; LOG.debug("The Part :- " + part.getNumber() + " ," + part.getName());&lt;/P&gt;&lt;P&gt; /*&lt;/P&gt;&lt;P&gt;  * Getting the LifeCycleTeplateReference from the given Life Cycle&lt;/P&gt;&lt;P&gt;  * Template name&lt;/P&gt;&lt;P&gt;  */&lt;/P&gt;&lt;P&gt; final LifeCycleTemplateReference lcRef = LifeCycleHelper.service&lt;/P&gt;&lt;P&gt; .getLifeCycleTemplateReference("name of the LC"&lt;SPAN style="font-size: 10pt;"&gt;, part&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; .getContainerReference());&lt;/P&gt;&lt;P&gt; LOG.debug("The Life Cycle Template Name :- " + lifecycleTemplateName);&lt;/P&gt;&lt;P&gt; if (lcRef == null) {&lt;/P&gt;&lt;P&gt; throw new WTException("Life Cycle Not Found");&lt;/P&gt;&lt;P&gt; } else if (WorkInProgressHelper.isCheckedOut((Workable) lcRef&lt;/P&gt;&lt;P&gt; .getObject())) {&lt;/P&gt;&lt;P&gt; throw new WTException("Life Cycle Template is checked out");&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt; // Reassigning the lifecycle with the given value&lt;/P&gt;&lt;P&gt; final LifeCycleManaged lcm = LifeCycleHelper.service.reassign(&lt;/P&gt;&lt;P&gt; (LifeCycleManaged) part, lcRef, part.getContainerReference());&lt;/P&gt;&lt;P&gt; // Set the state of the life cycle to the specific state&lt;/P&gt;&lt;P&gt;/* if (stateName != null) {&lt;/P&gt;&lt;P&gt; LifeCycleHelper.service.setLifeCycleState(lcm,&lt;/P&gt;&lt;P&gt; State.toState(stateName));&lt;/P&gt;&lt;P&gt; } */&lt;/P&gt;&lt;P&gt; LOG.info("Reassigning Complete");&lt;/P&gt;&lt;P&gt; // Refreshing WTPart after reassigning the life cycle and setting the&lt;/P&gt;&lt;P&gt; // state&lt;/P&gt;&lt;P&gt; PersistenceHelper.manager.refresh(lcm);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 22:22:02 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222561#M26654</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2013-11-02T22:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222562#M26655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I picked that up last Thursday. I felt a bit stupid that I had missed the "d". Thanks anyways for the trouble of answering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 06:45:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222562#M26655</guid>
      <dc:creator>TshepoMokhere</dc:creator>
      <dc:date>2013-11-04T06:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222563#M26656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreyas, The wf works, thanks a lot. Can you assist with how I get the role of the assignee of wf tasks to be reverted to the original assignee, who was the creator of the object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:49:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222563#M26656</guid>
      <dc:creator>TshepoMokhere</dc:creator>
      <dc:date>2013-11-13T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reassign Life cycles within a workflow</title>
      <link>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222564#M26657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks like first activity is your workflow is assigned to Creator-Actor.&lt;/P&gt;&lt;P&gt;you can assign first activity to any role instead of Creator-Actor. i.e. you can assign this activity to Owner role then you need to add creator of object into owner role&lt;/P&gt;&lt;P&gt;this can achieve this using two way 1. using lifecycle 2. Team template without writing code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;lifecycle &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Edit the lifecycle &amp;gt; go the first state &amp;gt; Role &amp;gt;add Owner Role &amp;gt;participants &amp;gt; Actors &amp;gt; add &lt;STRONG&gt;Creator&lt;/STRONG&gt; .save and check in the lifecylce&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; &lt;IMG __jive_id="61527" class="jive-image-thumbnail jive-image" height="391" onclick="" alt="lc.png" src="https://community.ptc.com/legacyfs/online/61527_lc.png" style="width: 768.2px; height: 391px;" width="768" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Team Template&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: 1.0in;"&gt;Add owner role in team template and creator actor in owner role&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="61528" class="jive-image-thumbnail jive-image" height="321" onclick="" alt="tm.png" src="https://community.ptc.com/legacyfs/online/61528_tm.png" style="height: 321px; width: 949.9644670050761px;" width="950" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;shreyas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:41:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Reassign-Life-cycles-within-a-workflow/m-p/222564#M26657</guid>
      <dc:creator>satre-2</dc:creator>
      <dc:date>2013-11-20T12:41:07Z</dc:date>
    </item>
  </channel>
</rss>

