A fix is available
APAR status
Closed as fixed if next.
Error description
TWProcessApp's snapshots property does not return the items in the documented order http://www-01.ibm.com/support/knowledgecenter/SSFPJS_8.5.5/com.i bm.wbpm.ref.doc/ae/doc/JSAPI.html The product javascript documentation mentions the following for this property: snapshots - Returns a JavaScript array of all of the snapshots of the current process app on a Teamworks Process Server or Process Center. If on Process Center, excludes archived snapshots. This list returns the snapshots in the order of oldest to newest based on the snapshot creation date. The observed behavior is that it sometime is in the creation order by track and sometimes it may appear to be somewhat random. . .--------------------------------------------- The query that is run that returns the data is select t0.SNAPSHOT_ID,t0.CREATED_ON,t0.NAME,t0.ACRONYM, t0.DESCRIPTION,t 0.SEQ_NUM,t0.ERROR_COUNTER, t0.ORIG_CREATED_ON,t0.ACTIVATED_ON,t0.STATUS, t0.CAPABILITY, t0.ARCHIVED_ON,t0.LAST_MODIFIED,t0.REPOSITORY_BRANCH_ID, t0.CREATED_BY_USER_ID,t0.BRANCH_ID,t0.PROJECT_ID, t0.LAST_MODIFIED_BY_USER_ ID,t0.CHANGE_DATA,t0.IS_ACTIVE, t0.IS_BLA_ACTIVE,t0.IS_STARTED,t0.IS_INSTALLED, t0.IS_BLA_INSTALLED,t0.IS_TIP_DEPLOYED,t0.IS_DEFAULT, t0.TIP_DEPLOYMENT_IN_PROGRESS,t0.IS_ARCHIVED from LSW_SNAPSHOT t0 where PROJECT_ID = ? and IS_ARCHIVED = ? and NAME is not null order by SEQ_NUM ASC
Local fix
To workaround the issue you would want to ensure that you sort the array after obtaining it. You may want to use the dateCreated or dateInstalled properties for the snapshots.
Problem summary
The problem will be fixed in next release.
Problem conclusion
Temporary fix
Comments
APAR Information
APAR number
JR51641
Reported component name
BPM ADVANCED
Reported component ID
5725C9400
Reported release
850
Status
CLOSED FIN
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-10-29
Closed date
2014-11-04
Last modified date
2015-06-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
R855 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
16 October 2021