-- Locate Step(s) Sending a Specified Notification
-- Workflow step notification emails are triggered
-- by a change in the workflow step and status.
-- For Create and Deliver notification types
-- the KNTA_NOTIFICATION table:
-- Condition_value field maps to the workflow_step.
-- Event_value field maps to the status.
select ww.workflow_name,
wws.sort_order "Step No", wws.step_name,
nn.event_value, nn.subject,
dbms_lob.substr(nn.parent_text, 4000, 1) "Message Text"
from KWFL_WORKFLOWS ww, KWFL_WORKFLOW_STEPS wws, KNTA_NOTIFICATIONS nn
where ww.workflow_name = 'Sales Forecast' /* Replace with your workflow name */
and wws.workflow_id = ww.workflow_id
and wws.workflow_step_id = nn.condition_value /* See Note above */
and nn.subject like '%simulation%' /* Replace with your subject search string*/
order by wws.sort_order
|