package cn.axzo.workflow.client.feign.bpmn;

import cn.axzo.workflow.client.config.CommonFeignConfiguration;
import cn.azxo.framework.common.model.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "workflow-engine", url = "${axzo.service.workflow-engine:http://workflow-engine:8080}", configuration = CommonFeignConfiguration.class)
public interface ProcessJobApi {

    @GetMapping("/api/process/job/dead-letter/resume")
    CommonResponse<Void> executeDeadLetterJobAction(@RequestParam(required = false) String jobId,
                                                    @RequestParam(required = false) String procInstId);
}
