Class WorkflowResource
java.lang.Object
com.scivicslab.workfloweditor.rest.WorkflowResource
REST + SSE endpoint for workflow editing and execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactors()Returns the actor tree: all registered actors, their types, children, and available actions.Exposes the SSE emitter for use by other resource classes (e.g., WorkflowApiResource).refresh()Tells the browser to reload the workflow editor UI.run(WorkflowResource.RunRequest request) Runs a workflow defined as a matrix of rows.setLogLevel(Map<String, String> body) Sets the log level for the workflow logger.stop()Stops a running workflow.
-
Constructor Details
-
WorkflowResource
public WorkflowResource()
-
-
Method Details
-
actors
Returns the actor tree: all registered actors, their types, children, and available actions. -
run
@POST @Path("/run") @Consumes("application/json") @Produces("application/json") public Map<String,String> run(WorkflowResource.RunRequest request) Runs a workflow defined as a matrix of rows. -
stop
Stops a running workflow. -
refresh
Tells the browser to reload the workflow editor UI. -
getSseEmitter
Exposes the SSE emitter for use by other resource classes (e.g., WorkflowApiResource). -
setLogLevel
@PUT @Path("/log-level") @Consumes("application/json") @Produces("application/json") public Map<String,String> setLogLevel(Map<String, String> body) Sets the log level for the workflow logger.
-