Class WorkflowResource

java.lang.Object
com.scivicslab.workfloweditor.rest.WorkflowResource

@Path("/api") @ApplicationScoped public class WorkflowResource extends Object
REST + SSE endpoint for workflow editing and execution.
  • Constructor Details

    • WorkflowResource

      public WorkflowResource()
  • Method Details

    • actors

      @GET @Path("/actors") @Produces("application/json") public List<Map<String,Object>> 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

      @POST @Path("/stop") @Produces("application/json") public Map<String,String> stop()
      Stops a running workflow.
    • refresh

      @POST @Path("/refresh") @Produces("application/json") public Map<String,String> refresh()
      Tells the browser to reload the workflow editor UI.
    • getSseEmitter

      public Consumer<WorkflowResource.WorkflowEvent> 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.