How to find the actual number of versions a process model has?

I am trying to use the Appian Smart Service 'Delete Process Model Versions' to remove unwanted old versions of process models. The smart service is working fine, but my question is, "How can I find out how many versions each process model has, so that I know which ones are candidates for version deletion?".

Using a Process Model Version report, I can find out the latest version number, but as the version number does not change when earlier versions are deleted, that is no use to me.

Can anybody tell me how I can find out the actual number of versions a process model has?

OriginalPostID-228639

OriginalPostID-228639

  Discussion posts and replies are publicly visible

Parents
  • I have just come back to this problem, having been diverted for a couple of months.

    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 'Delete Process Model Versions' Smart Service.

    For example, I pass in Process Models Id of 201 and Keep Vwersions of 5.

    I'm getting the following message in the jboss1-stdOut.log:

    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

    Any idea what I'm doing wrong?
Reply
  • I have just come back to this problem, having been diverted for a couple of months.

    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 'Delete Process Model Versions' Smart Service.

    For example, I pass in Process Models Id of 201 and Keep Vwersions of 5.

    I'm getting the following message in the jboss1-stdOut.log:

    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

    Any idea what I'm doing wrong?
Children
No Data