All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.serverlessworkflow.api.switchconditions.DataCondition Maven / Gradle / Ivy


package io.serverlessworkflow.api.switchconditions;

import java.io.Serializable;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.serverlessworkflow.api.end.End;
import io.serverlessworkflow.api.interfaces.SwitchCondition;
import io.serverlessworkflow.api.transitions.Transition;
import jakarta.validation.Valid;


/**
 * Switch state data based condition
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "name",
    "condition",
    "transition",
    "end"
})
@Generated("jsonschema2pojo")
public class DataCondition implements Serializable, SwitchCondition
{

    /**
     * Data condition name
     * 
     */
    @JsonProperty("name")
    @JsonPropertyDescription("Data condition name")
    private String name;
    /**
     * Workflow expression evaluated against state data. True if results are not empty
     * 
     */
    @JsonProperty("condition")
    @JsonPropertyDescription("Workflow expression evaluated against state data. True if results are not empty")
    private String condition;
    @JsonProperty("transition")
    @Valid
    private Transition transition;
    /**
     * State end definition
     * 
     */
    @JsonProperty("end")
    @JsonPropertyDescription("State end definition")
    @Valid
    private End end;
    private final static long serialVersionUID = 1145735373282445767L;

    /**
     * Data condition name
     * 
     */
    @JsonProperty("name")
    public String getName() {
        return name;
    }

    /**
     * Data condition name
     * 
     */
    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    public DataCondition withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Workflow expression evaluated against state data. True if results are not empty
     * 
     */
    @JsonProperty("condition")
    public String getCondition() {
        return condition;
    }

    /**
     * Workflow expression evaluated against state data. True if results are not empty
     * 
     */
    @JsonProperty("condition")
    public void setCondition(String condition) {
        this.condition = condition;
    }

    public DataCondition withCondition(String condition) {
        this.condition = condition;
        return this;
    }

    @JsonProperty("transition")
    public Transition getTransition() {
        return transition;
    }

    @JsonProperty("transition")
    public void setTransition(Transition transition) {
        this.transition = transition;
    }

    public DataCondition withTransition(Transition transition) {
        this.transition = transition;
        return this;
    }

    /**
     * State end definition
     * 
     */
    @JsonProperty("end")
    public End getEnd() {
        return end;
    }

    /**
     * State end definition
     * 
     */
    @JsonProperty("end")
    public void setEnd(End end) {
        this.end = end;
    }

    public DataCondition withEnd(End end) {
        this.end = end;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy