Hello everyone;
We are migrating from version 21 to 24.
In our company, we have a customized portal where all the links to the processes and services created in BPM are published.
With the new version, the services link doesn't work for us.
LINKS to the old version that works.
Select:
SELECT FAVORITE_ID as Id,
NAME as Nombre,
GROUP_ID as GrupoId,
SNAPSHOT_ID as SnapshotId,
SNAPSHOTNAME as SnapshotName,
PROJECT_ID as ProjectId,
SHORT_NAME as ProjectAcronym,
ITEM_TYPE as ItemType,
TYPE as ItemTypeDescription,
ITEM_ID as ItemId,
CACHED_BPD_VERSION_ID AS BPDId,
CACHED_PROCESS_VERSION_ID AS ServiceId,
IS_DEFAULT as IsDefault,
EXPOSED_SERVICE_TYPE as ServiceType,
EXPOSED_PROCESS_TYPE as ProcessType,
IS_ACTIVE as SnapshotActive,
IS_INSTALLED as SnapshotInstalled,
ENABLED as Activo,
case when ITEM_TYPE = 25 then
'/rest/bpm/wle/v1/process?action=start&bpdId=' + convert(nvarchar(50),ITEM_TYPE) + '.' + lower(convert(nvarchar(50),ITEM_ID)) + '&snapshotId=2064.' + lower(convert(nvarchar(50),SNAPSHOT_ID)) + '&processAppId=2066.' + lower(convert(nvarchar(50),PROJECT_ID))
when ITEM_TYPE = 1 then
'/teamworks/process.lsw?zWorkflowState=5&zNoTaskFav=true&zFavId=' + convert(nvarchar,FAVORITE_ID) + '&zForceNew=true&zProcessRef=/1.' + lower(convert(nvarchar(50),ITEM_ID))
else '???'
end as Url
FROM OPENQUERY(BPMDB2QA,'SELECT f.GROUP_ID , s.SNAPSHOT_ID, s.NAME AS SNAPSHOTNAME, s.PROJECT_ID, p.SHORT_NAME, f.ITEM_TYPE, case f.ITEM_TYPE when 1 then ''Service'' when 25 then ''Process'' else '''' end as TYPE,
f.ITEM_ID, f.NAME, FAVORITE_ID, s.IS_DEFAULT, EXPOSED_SERVICE_TYPE , EXPOSED_PROCESS_TYPE,ENABLED, CACHED_BPD_VERSION_ID, CACHED_PROCESS_VERSION_ID,
s.IS_ACTIVE, IS_INSTALLED
FROM DB2INST1.LSW_FAVORITE f
inner join DB2INST1.LSW_SNAPSHOT s on f.SNAPSHOT_ID = s.SNAPSHOT_ID
inner join DB2INST1.LSW_PROJECT p on p.PROJECT_ID = s.PROJECT_ID
WHERE ENABLED = ''T'' --AND (s.IS_ACTIVE = ''T'' and IS_INSTALLED = ''T'')
and (EXPOSED_SERVICE_TYPE in (2,3) or EXPOSED_PROCESS_TYPE = 0) --and is_default = ''T''
WITH UR') AS DB2
Process:
<a href="#" onclick="getNewInstance('/rest/bpm/wle/v1/process?action=start&bpdId=25.e3790dcb-ac85-4850-9ad6-70c92021cbd9&snapshotId=2064.5d597190-0b0a-4dfd-8877-a506675bc180&processAppId=2066.dca2794e-b594-47d3-8d5f-a968e1e1397e')">CAPA</a>
Service:
<a href="#" onclick="openService('/teamworks/process.lsw?zWorkflowState=5&zNoTaskFav=true&zFavId=5269303&zForceNew=true&zProcessRef=/1.877cad46-6c6a-4b9f-ab92-b3bd69d2993d')">Monitor CAPA</a>
Does anyone know how to set up the link for the services published in version 24?
Thank you.
------------------------------
Mercedes Cabrera Torres
IT Applications & Project Specialist, and IBM Stack Manager
Hipra S.A
------------------------------