This command will list all workflows with a system activity with error in the execution.
Related tables
Table
Description
Primary key (PK)
Connection tables
WFPROCESS
Table that stores instances
PKWFPROCESS
WFSTRUCT
WFSTRUCT
Workflow flowchart item table
PKWFSTRUCT
WFPROCESS
Oracle/Postgres/SQL Server
SELECT WFP.IDPROCESS AS Identificador FROM WFPROCESS WFP WHERE EXISTS ( SELECT NULL FROM WFSTRUCT WFS WHERE WFS.IDPROCESS = WFP.IDOBJECT AND WFS.FGEXECERROR = 1 )