Data Source with all Workflows with On Start (Cyclical)

This describes a solution that displays an overview in the Portal of all workflows with "on start (cyclical)" executions.

Data Source with all Workflows with On Start (Cyclical)

In workflow’s global actions one can add automations that get executed “on start (cyclical)”. It’s hard to keep an overview of all workflows with such automations through all application groups, applications, processes and workflows. To get an overview one can create an MSSQL data query with the current database as connection and the following SQL query.

  • It returns in the first column if the cycle is active or not.
  • Then there are several columns containing GUID, ID and name of the associated application group, application, process and workflow.
  • Next there are all columns of the excecution statistics of the cycle
  • And last all columns of the cycle itself

SQL query

SELECT
CASE
WHEN ras.RAS_NextLaunch IS NOT NULL THEN 1
ELSE 0
END as isActive,
AGR_GUID as agrGuid, AGR_ID as agrId, AGR_Name as agrName,
APP_GUID as agppGuid, APP_ID as appId, APP_Name as appName,
DEF_GUID as processGuid, DEF_ID as processId, DEF_Name as processName,
wf.wf_GUID as wfGuid, wf.WF_ID as wfId, wf.WF_Name as wfName,
ras.*,
rad.*,
aut.AUTM_Name
FROM WFRecurrentActionsDefinitions rad
LEFT JOIN WorkFlows wf
ON wf.WF_ID = rad.RAD_WFID
LEFT JOIN WFDefinitions process
ON process.DEF_ID = wf.WF_WFDEFID
LEFT JOIN Automations aut
ON aut.AUTM_ID = rad.RAD_AUTMID
LEFT JOIN WFApplications app
ON app.APP_ID = process.DEF_APPID
LEFT JOIN WFApplicationsGroups agr
ON agr.AGR_ID = app.APP_AGRID
LEFT JOIN WFRecurrentActionsStats ras
ON ras.RAS_ID = rad.RAD_ID

Portal integration

To get this table accessible in the portal one can create a process with a data table field associated to this MSSQL data source. Go to the Workflow Designer and just delete all paths, the end step and the phases execution and end. Put this global formrule in the behavior tab of the Main Form to avoid the unsaved data popup when leaving:

Disable “unsaved data” alert when leaving a form

Create a start und presentation that loads this “Display all cycles” form.

Categories

Comments

Comments will be added here later.