package com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.rules;

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 Rules {

    @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;

}
