RED-9472: seperation of system rules
added a new model for rule upload
This commit is contained in:
parent
d41acb5797
commit
1465a040b8
@ -19,7 +19,5 @@ public class RulesResponse {
|
||||
|
||||
@Schema(description = "Bad written rules can lead to timeouts or endless processing. This will be detected by the system and all analyse request for the rules will be rejected. This flag indicates that a timeout was detected and you need to fix the rules")
|
||||
private boolean timeoutDetected;
|
||||
@Schema(description = "validation result, only set when uploading rules")
|
||||
private DroolsValidationResponse droolsValidationResponse;
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.rules.DroolsValidationResponse;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Schema(description = "Object containing a string of Drools rules.")
|
||||
public class RulesUploadResponse {
|
||||
|
||||
@Schema(description = "The actual string of rules.")
|
||||
private String rules;
|
||||
|
||||
@Schema(description = "The DossierTemplate Id for these rules")
|
||||
private String dossierTemplateId;
|
||||
|
||||
@Schema(description = "Bad written rules can lead to timeouts or endless processing. This will be detected by the system and all analyse request for the rules will be rejected. This flag indicates that a timeout was detected and you need to fix the rules")
|
||||
private boolean timeoutDetected;
|
||||
@Schema(description = "validation result, only set when uploading rules")
|
||||
private DroolsValidationResponse droolsValidationResponse;
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user