Class WorkflowVariableController

java.lang.Object
com.bytedesk.core.workflow.variable.WorkflowVariableController

@RestController @RequestMapping("/api/v1/workflow/variable") public class WorkflowVariableController extends Object
工作流变量控制器
  • Field Details

  • Constructor Details

    • WorkflowVariableController

      public WorkflowVariableController()
  • Method Details

    • createVariable

      @ActionAnnotation(title="\u5de5\u4f5c\u6d41\u53d8\u91cf", action="\u65b0\u5efa", description="create workflow variable") @PostMapping("/create") public org.springframework.http.ResponseEntity<?> createVariable(@RequestBody WorkflowVariableRequest request)
      创建工作流变量
    • getVariable

      @GetMapping("/{workflowUid}/{name}") public org.springframework.http.ResponseEntity<?> getVariable(@PathVariable String workflowUid, @PathVariable String name)
      获取工作流变量
    • getLocalVariable

      @GetMapping("/{workflowUid}/{nodeUid}/{name}") public org.springframework.http.ResponseEntity<?> getLocalVariable(@PathVariable String workflowUid, @PathVariable String nodeUid, @PathVariable String name)
      获取工作流局部变量
    • getVariables

      @GetMapping("/{workflowUid}") public org.springframework.http.ResponseEntity<?> getVariables(@PathVariable String workflowUid)
      获取工作流所有变量
    • getLocalVariables

      @GetMapping("/{workflowUid}/{nodeUid}") public org.springframework.http.ResponseEntity<?> getLocalVariables(@PathVariable String workflowUid, @PathVariable String nodeUid)
      获取节点所有局部变量
    • removeVariable

      @ActionAnnotation(title="\u5de5\u4f5c\u6d41\u53d8\u91cf", action="\u5220\u9664", description="delete workflow variable") @DeleteMapping("/{workflowUid}/{name}") public org.springframework.http.ResponseEntity<?> removeVariable(@PathVariable String workflowUid, @PathVariable String name)
      删除工作流变量
    • removeLocalVariable

      @ActionAnnotation(title="\u5de5\u4f5c\u6d41\u5c40\u90e8\u53d8\u91cf", action="\u5220\u9664", description="delete workflow local variable") @DeleteMapping("/{workflowUid}/{nodeUid}/{name}") public org.springframework.http.ResponseEntity<?> removeLocalVariable(@PathVariable String workflowUid, @PathVariable String nodeUid, @PathVariable String name)
      删除工作流局部变量
    • removeAllVariables

      @ActionAnnotation(title="\u5de5\u4f5c\u6d41\u53d8\u91cf", action="\u6279\u91cf\u5220\u9664", description="delete all workflow variables") @DeleteMapping("/{workflowUid}") public org.springframework.http.ResponseEntity<?> removeAllVariables(@PathVariable String workflowUid)
      删除工作流所有变量
    • removeAllLocalVariables

      @ActionAnnotation(title="\u5de5\u4f5c\u6d41\u5c40\u90e8\u53d8\u91cf", action="\u6279\u91cf\u5220\u9664", description="delete all workflow local variables") @DeleteMapping("/{workflowUid}/{nodeUid}") public org.springframework.http.ResponseEntity<?> removeAllLocalVariables(@PathVariable String workflowUid, @PathVariable String nodeUid)
      删除节点所有局部变量
    • parseValue

      private Object parseValue(String valueStr, WorkflowVariableTypeEnum type)
      根据变量类型解析值
    • convertToResponse

      private WorkflowVariableResponse convertToResponse(WorkflowVariableEntity entity)
      将实体转换为响应DTO