I can show WorkflowPlayer tab

This commit is contained in:
2025-07-06 12:17:20 +02:00
parent 60872a0aec
commit e183584f52
9 changed files with 173 additions and 6 deletions

View File

@@ -65,6 +65,7 @@ def post(session, _id: str, from_id: str, to_id: str):
instance = InstanceManager.get(session, _id)
return instance.add_connection(from_id, to_id)
@rt(Routes.DeleteConnection)
def post(session, _id: str, from_id: str, to_id: str):
logger.debug(
@@ -72,6 +73,7 @@ def post(session, _id: str, from_id: str, to_id: str):
instance = InstanceManager.get(session, _id)
return instance.delete_connection(from_id, to_id)
@rt(Routes.ResizeDesigner)
def post(session, _id: str, designer_height: int):
logger.debug(
@@ -122,4 +124,12 @@ def post(session, _id: str, component_id: str, event_name: str, details: dict):
details.pop("_id")
details.pop("component_id")
details.pop("event_name")
return instance.on_processor_details_event(component_id, event_name, details)
return instance.on_processor_details_event(component_id, event_name, details)
@rt(Routes.PlayWorkflow)
def post(session, _id: str, tab_boundaries: str):
logger.debug(
f"Entering {Routes.PlayWorkflow} with args {debug_session(session)}, {_id=}")
instance = InstanceManager.get(session, _id)
return instance.play_workflow(json.loads(tab_boundaries))