summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/workflow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/workflow.py b/python/workflow.py
index 8213a6b6..bf47a41a 100644
--- a/python/workflow.py
+++ b/python/workflow.py
@@ -715,6 +715,13 @@ class WorkflowMachine:
else:
return json.loads(core.BNPostWorkflowRequestForBinaryView(self.handle, request))
+ def delay(self, duration):
+ request = json.dumps({"command": "delay", "duration": duration})
+ if self.is_function_machine:
+ return json.loads(core.BNPostWorkflowRequestForFunction(self.handle, request))
+ else:
+ return json.loads(core.BNPostWorkflowRequestForBinaryView(self.handle, request))
+
def request(self, request):
if self.is_function_machine:
return json.loads(core.BNPostWorkflowRequestForFunction(self.handle, request))