Class WorkflowController

java.lang.Object
com.codingapi.flow.api.controller.WorkflowController

@RestController @RequestMapping("/api/cmd/workflow") public class WorkflowController extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.codingapi.springboot.framework.dto.response.Response
    changeState(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    com.codingapi.springboot.framework.dto.response.Response
    changeVersion(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<com.alibaba.fastjson.JSONObject>
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<Map<String,Object>>
     
    com.codingapi.springboot.framework.dto.response.Response
    deleteVersion(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    void
    export(com.codingapi.springboot.framework.dto.request.IdRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<WorkflowMeta>
    getMeta(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<String>
    importWorkflow(com.alibaba.fastjson.JSONObject body)
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<com.alibaba.fastjson.JSONObject>
     
    com.codingapi.springboot.framework.dto.response.SingleResponse<String>
     
    com.codingapi.springboot.framework.dto.response.Response
    mock(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    com.codingapi.springboot.framework.dto.response.Response
    remove(com.codingapi.springboot.framework.dto.request.IdRequest request)
     
    com.codingapi.springboot.framework.dto.response.Response
    save(com.alibaba.fastjson.JSONObject request)
     
    com.codingapi.springboot.framework.dto.response.Response
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WorkflowController

      public WorkflowController()
  • Method Details

    • remove

      @PostMapping("/remove") public com.codingapi.springboot.framework.dto.response.Response remove(@RequestBody com.codingapi.springboot.framework.dto.request.IdRequest request)
    • updateVersionName

      @PostMapping("/updateVersionName") public com.codingapi.springboot.framework.dto.response.Response updateVersionName(@RequestBody WorkflowUpdateVersionNameRequest request)
    • getMeta

      @GetMapping("/meta") public com.codingapi.springboot.framework.dto.response.SingleResponse<WorkflowMeta> getMeta(com.codingapi.springboot.framework.dto.request.IdRequest request)
    • changeVersion

      @PostMapping("/changeVersion") public com.codingapi.springboot.framework.dto.response.Response changeVersion(@RequestBody com.codingapi.springboot.framework.dto.request.IdRequest request)
    • deleteVersion

      @PostMapping("/deleteVersion") public com.codingapi.springboot.framework.dto.response.Response deleteVersion(@RequestBody com.codingapi.springboot.framework.dto.request.IdRequest request)
    • changeState

      @PostMapping("/changeState") public com.codingapi.springboot.framework.dto.response.Response changeState(@RequestBody com.codingapi.springboot.framework.dto.request.IdRequest request)
    • mock

      @PostMapping("/mock") public com.codingapi.springboot.framework.dto.response.SingleResponse<String> mock()
    • mock

      @PostMapping("/cleanMock") public com.codingapi.springboot.framework.dto.response.Response mock(@RequestBody com.codingapi.springboot.framework.dto.request.IdRequest request)
    • create

      @PostMapping("/create") public com.codingapi.springboot.framework.dto.response.SingleResponse<com.alibaba.fastjson.JSONObject> create()
    • importWorkflow

      @PostMapping("/import") public com.codingapi.springboot.framework.dto.response.SingleResponse<String> importWorkflow(@RequestBody com.alibaba.fastjson.JSONObject body)
    • export

      @GetMapping("/export") public void export(com.codingapi.springboot.framework.dto.request.IdRequest request, jakarta.servlet.http.HttpServletResponse response)
    • createNode

      @PostMapping("/create-node") public com.codingapi.springboot.framework.dto.response.SingleResponse<Map<String,Object>> createNode(@RequestBody NodeCreateRequest request)
    • save

      @PostMapping("/save") public com.codingapi.springboot.framework.dto.response.Response save(@RequestBody com.alibaba.fastjson.JSONObject request)
    • load

      @GetMapping("/load") public com.codingapi.springboot.framework.dto.response.SingleResponse<com.alibaba.fastjson.JSONObject> load(String id)