<?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: item.workflowItem Scripting Query in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819085#M7650</link>
    <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes as you said - akin to making it a required field. I look forward to hearing the outcome of your enquiry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Mar 2013 20:28:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-30T20:28:36Z</dc:date>
    <item>
      <title>item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3818854#M7647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to access the 'lifecycle' field of the affected items in a revisioning item in scripting (see attached image)? I want to be able to validate via scripting that the user has made a selection (i.e. either 'revise' or 'retire')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 22:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3818854#M7647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-29T22:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819012#M7648</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is totally be possible - I made a quick test to hack together to make sure it works - something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While there is no logic here - drop it intoa &amp;nbsp;new conditional script and you can see the print statement will get you the name of the LC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;var isOkay = false;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;println(item.workflowItems[0].item.descriptor.dvi.lifecycleState.stateName);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;returnValue(isOkay);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference - there is a link here that shows the properties to access the linked items. &amp;nbsp;Ater you get to the item you can traverse it just like you would a linking pick list or other similar related item.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wikihelp.autodesk.com/PLM_360/enu/Help/Help/0091-Develope91/0092-Server-S92/0099-Scriptin99#SECTION_6D2E1D26A0B645D9918CBE8D059014EE" target="_self"&gt;http://wikihelp.autodesk.com/PLM_360/enu/Help/Help/0091-Develope91/0092-Server-S92/0099-Scriptin99#SECTION_6D2E1D26A0B645D9918CBE8D059014EE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2013 14:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819012#M7648</guid>
      <dc:creator>broepke</dc:creator>
      <dc:date>2013-03-30T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819014#M7649</link>
      <description>&lt;P&gt;Ah..... Sorry - Misunderstood - Reading again I get your point - akin to making it a required field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll see if anyone else knows a way - I'm not familar with that...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2013 14:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819014#M7649</guid>
      <dc:creator>broepke</dc:creator>
      <dc:date>2013-03-30T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819085#M7650</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes as you said - akin to making it a required field. I look forward to hearing the outcome of your enquiry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2013 20:28:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3819085#M7650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-30T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822097#M7651</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on this, when an item is in a lifecycle it is already predefined as unreleased (on creation of the item).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So by using the script predefined by Brian,&lt;/P&gt;
&lt;P&gt;One could create a Validation script that will check for the given state (revise or retire), or to check that the given state is not equal to unreleased ( this would be the easier way to go). This will in turn force alert the user that they must complete that required section.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:51:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822097#M7651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822120#M7652</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. But I'm still a little unclear on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not the item lifecycle state that I need to check. I want to be able to check what lifecycle transition has been selected for items on the 'affected items' table. Please see the image I attached to an earlier post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I haven't picked you up correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822120#M7652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822123#M7653</link>
      <description>&lt;P&gt;I also raised an Idea Station entry for this that might shed more light on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/Autodesk-PLM-360-IdeaStation/Scripting-access-to-lifecycle-field-in-affected-items-tab/idi-p/3821372"&gt;Idea Station entry&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822123#M7653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822147#M7654</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok I think i have narrowed down what you are asking about&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the picture shown, whatever the user inputs for that field, and then saves it. That is what the script will return. If nothing is selected then it will auto default to the last selection made, If it is a new item then it will default to unreleased.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822147#M7654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822635#M7655</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some testing on the scipt you provided. I think it returns the 'current' lifecycle state of the item in the affected items table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I completed the following steps;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Created a new revision-controlled item (item A)&lt;/P&gt;&lt;P&gt;2. I created a new revisioning item (item B)&lt;/P&gt;&lt;P&gt;3. I attached item A to the 'affected items' tab of item B&lt;/P&gt;&lt;P&gt;4. I ran the script you provided on item B. Result was 'Unreleased'&lt;/P&gt;&lt;P&gt;5. I changed the 'lifecycle' value in the affected items table for item A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. I ran the same script again. Result was 'Unreleased'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that I'm missing here? The lifecycle of the item A wont change until item B reaches the 'managed state'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822635#M7655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822651#M7656</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nope not missing a thing, I stand corrected (retested myself), I'll see to it as to support your submission to the IdeaStation&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822651#M7656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: item.workflowItem Scripting Query</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822665#M7657</link>
      <description>&lt;P&gt;Thanks Joe.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:08:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/item-workflowitem-scripting-query/m-p/3822665#M7657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T20:08:18Z</dc:date>
    </item>
  </channel>
</rss>

