<?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 How do I use the SetStateUtil.setObjectsState(Collection,State,boolean) method if my Collection consists of FlexObject types.  The method is expecting LifecycleManaged objects types. in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-do-I-use-the-SetStateUtil-setObjectsState-Collection-State/m-p/318922#M7614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a Collection object using the code below.&amp;nbsp; The objects in the Collection are FlexObject type.&amp;nbsp; I would assume that the setObjectsState method would convert the FlexObject types to LifeCycleManaged, but it doesn't.&amp;nbsp; Do I really have to walk through the Collection and type cast each object and put it into a new Collection to use this method?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;com.lcs.wc.placeholder.Placeholder ph = (com.lcs.wc.placeholder.Placeholder)primaryBusinessObject;&lt;/P&gt;&lt;P&gt;java.util.Collection col = com.lcs.wc.placeholder.PlaceholderQuery.findProductsForPlaceholder(ph);&lt;/P&gt;&lt;P&gt;com.lcs.wc.lifecycle.SetStateUtil.setObjectsState(col, wt.lifecycle.State.toState("ESTIMATED"), true);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2024 15:04:31 GMT</pubDate>
    <dc:creator>bpalm</dc:creator>
    <dc:date>2024-03-15T15:04:31Z</dc:date>
    <item>
      <title>How do I use the SetStateUtil.setObjectsState(Collection,State,boolean) method if my Collection consists of FlexObject types.  The method is expecting LifecycleManaged objects types.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-do-I-use-the-SetStateUtil-setObjectsState-Collection-State/m-p/318922#M7614</link>
      <description>I'm creating a Collection object using the code below.&amp;nbsp; The objects in the Collection are FlexObject type.&amp;nbsp; I would assume that the setObjectsState method would convert the FlexObject types to LifeCycleManaged, but it doesn't.&amp;nbsp; Do I really have to walk through the Collection</description>
      <pubDate>Fri, 15 Mar 2024 15:04:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-do-I-use-the-SetStateUtil-setObjectsState-Collection-State/m-p/318922#M7614</guid>
      <dc:creator>bpalm</dc:creator>
      <dc:date>2024-03-15T15:04:31Z</dc:date>
    </item>
  </channel>
</rss>

