<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to find the actual number of versions a process model has?</title><link>https://community.appian.com/discussions/f/general/8207/how-to-find-the-actual-number-of-versions-a-process-model-has</link><description>I am trying to use the Appian Smart Service &amp;#39;Delete Process Model Versions&amp;#39; to remove unwanted old versions of process models. The smart service is working fine, but my question is, &amp;quot;How can I find out how many versions each process model has, so that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/47354?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 21:55:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29cd8e05-e99e-4a90-a558-0fc7588c542e</guid><dc:creator>bradc</dc:creator><description>  - You may have already figured this out by now, but I am doing the same thing you mentioned above and I was able to confirm that the plugin will return the current count of versions.  I am deleting all but the most recent version with the &amp;#39;Delete Process Model Versions&amp;#39; smart service (Keep Versions input = 1) and the getProcessModelDetailsByUUID is returning 2 for the version count of all process models.  It seems this count is referencing the Draft and the published version.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/46696?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 18:43:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d9cb60b-7eed-45f5-b912-a0f8413fbb78</guid><dc:creator>Mike Schmitt</dc:creator><description>@Eduardo: out of curiosity - does the plugin return number of CURRENT versions, or just highest version number, or both?  I now have a bunch of process models in the system where i&amp;#39;ve trimmed out (hundreds) of past versions, so it might become useful for me to see the number of current versions as opposed to just the current version number which is what&amp;#39;s shown in a PM Report.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/46695?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 18:40:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b972411c-34b8-400b-8227-99df755ed6c6</guid><dc:creator>Mike Schmitt</dc:creator><description>I do this in my system and the short answer is, i run query a process analytics call on a process model report of all process models in the system.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/46694?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 17:43:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ccba342-c955-45fa-8ea4-aae4181357bf</guid><dc:creator>garym</dc:creator><description>@paule @Eduardo Fuentes - I just saw this thread and am trying to do the same thing.  How did you get the list of UUIDs for all the process models in your system?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/34768?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2016 11:10:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7b0a2ce-d8b0-4586-a133-33b72874d1ad</guid><dc:creator>Eduardo Fuentes</dc:creator><description>How many versions does it have? This error shouldn&amp;#39;t prevent the smart service from continuing, does it?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/34755?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 17:59:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11eb8705-824c-4691-a179-2a733b50b844</guid><dc:creator>paule</dc:creator><description>I have just come back to this problem, having been diverted for a couple of months.&lt;br /&gt;&lt;br /&gt;I am now able to use Content Details By UUID to show the number of versions existing for each process model.  I am passing a list of Process Model Ids and the number of versions to keep into the &amp;#39;Delete Process Model Versions&amp;#39; Smart Service.&lt;br /&gt;&lt;br /&gt;For example, I pass in Process Models Id of 201 and Keep Vwersions of 5.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m getting the following message in the jboss1-stdOut.log:&lt;br /&gt;&lt;br /&gt;12:38:01,296 INFO  [stdout] (ajp-/0.0.0.0:8009-12) 2016-10-17 12:38:01,296 [ajp-/0.0.0.0:8009-12] ERROR com.appiancorp.processmodelutilities.ProcessModelVersionDeleter - InvalidVersionException: 0.0 of process model id: 201 is only in the file system and has been deleted&lt;br /&gt;&lt;br /&gt;Any idea what I&amp;#39;m doing wrong?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/34492?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 07:53:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e75569bc-223d-42ec-9fe6-e5eb4c3edcc3</guid><dc:creator>Eduardo Fuentes</dc:creator><description>The latest version of the Shared Component &amp;quot;Content Details by UUID&amp;quot; now returns the number of versions a process model has:&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;=getProcessModelDetailsByUUID(&amp;quot;0003dd0c-9352-8000-f92f-7f0000014e7a&amp;quot;)&lt;br /&gt;&lt;br /&gt;returns&lt;br /&gt;&lt;br /&gt;Type: Process Model, Name: [en_GB=, en_US=Simple Model Does Nothing, it=, fr_FR=], Id:235, UUID:0003dd0c-9352-8000-f92f-7f0000014e7a, Creator: eduardo.fuentes, Last Modified by: eduardo.fuentes, Parent: Eduardo, Parent Id: 6, Location: [Process Models -&amp;gt; Eduardo ], IsPublic: false, Created on: 6/2/16 5:06:26 AM GMT, Last Modified on: 7/14/16 8:15:42 AM GMT, Number of Versions: 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;which means I can extract the versions using&lt;br /&gt;&lt;br /&gt;=keyval(getProcessModelDetailsByUUID(&amp;quot;0003dd0c-9352-8000-f92f-7f0000014e7a&amp;quot;),{&amp;quot;Number of Versions&amp;quot;},&amp;quot;:&amp;quot;,&amp;quot;,&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/34479?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 05:35:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31acb295-d39c-45e0-b6e4-754e2a62d35c</guid><dc:creator>sikhivahans</dc:creator><description>I don&amp;#39;t think the above-mentioned approach works because, as soon as the version is deleted(from the interface or by making use of smart service), the corresponding row from Portal Report disappears and if all the versions are deleted, the pm!version starts at 1.0 again. So it may not be worth at all depending on the Report.&lt;br /&gt;&lt;br /&gt;@paule As the description of the plugin is stating that &amp;#39;This smart service allows you to delete process model versions from both, the interface and disk.&amp;#39;, it may not be possible to get the actual number of versions as the data is also erased from file system when we delete the version using the &amp;#39;Delete Process Model Versions&amp;#39; smart service.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the actual number of versions a process model has?</title><link>https://community.appian.com/thread/34439?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2016 15:36:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3888dad1-b3c4-49a3-ba09-7f622053604d</guid><dc:creator>narasimhaadityac</dc:creator><description>Hi Paul, Would it be possible to read &amp;quot;Process Model Versions&amp;quot; report through a!queryProcessAnalyics() and apply the filter on the name / UUID (need to be added), and then look at the total count should give you the details which are looking for.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>