Thank you for reply! Yes, I have already tried to make workflow that loops indefinitely. It seems like SOAR automatically wipes out any loop operations from script. Could you elaborate on making custom function loop?
Also, I decided to use 'delta' istead of 'interval' in scheduler and created automatic rule 'A' for tasks that triggers workflow 'A-w' with following script:
import time
td = time.time()*1000
delt = (int(task.due_date)-int(td)+900000)/1000
inputs.scheduler_type = 'delta'
inputs.scheduler_type_value = '{}s'.format(delt)
inputs.scheduler_rule_name = 'B'
inputs.scheduler_label_prefix = 'B'
inputs.incident_id = incident.id
inputs.object_id = task.id
The idea is to calculate delta in seconds and create a schedule that triggers rule 'B' witch triggers workflow that sends email notification. But the problem is that workflow 'A-w' is not triggering the rule 'B'. It is showing as 'waiting' in 'state of action' tab and it never 'done' even when expected time is up. Any suggestions on that?
------------------------------
Magzhan Leskhan
------------------------------
Original Message:
Sent: Tue October 12, 2021 05:52 PM
From: Jared Fagel
Subject: Automatic notification case
It's be a bit messy, but you could run a workflow on every created task you want this to occur on (no conditions), and then have a custom function in that workflow that loops indefinitely checking the task status (and incident status), then return when that 15 minutes is up. On the return you'd have the email action run with the desired notification. I'm unsure how the system would perform as tasks (ant therefore actions) stack up.
This wouldn't be achievable via a script/preprocessor, because scripts have timeouts that prevent indefinite loops from being allowed.
------------------------------
Jared Fagel
Cyber Security Analyst
ALLETE Inc.
------------------------------