Added synapse notify to preexeccution filtering at the action level. Expanded filter metadata
This commit is contained in:
@@ -12,10 +12,13 @@ def buildAction (action, outputs, process):
|
||||
|
||||
if hasattr(action, "allowaction"):
|
||||
if not action.allowaction:
|
||||
return outputs, None
|
||||
return None
|
||||
|
||||
if match:
|
||||
return outputs, None
|
||||
if filter.get("execute", False):
|
||||
response, outputs = executeRequest(filter["execute"], outputs, resolved)
|
||||
|
||||
return None
|
||||
|
||||
response, outputs = executeRequest(action, outputs, resolved)
|
||||
|
||||
@@ -27,4 +30,4 @@ def buildAction (action, outputs, process):
|
||||
if action_log:
|
||||
logging.info(f"{action.name} completed")
|
||||
|
||||
return outputs, response
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user