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

io.zeebe.model.bpmn.impl.yaml.YamlTask Maven / Gradle / Ivy

There is a newer version: 0.16.4
Show newest version
/*
 * Copyright © 2017 camunda services GmbH ([email protected])
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.zeebe.model.bpmn.impl.yaml;

import java.util.*;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.zeebe.model.bpmn.instance.TaskDefinition;

public class YamlTask
{
    private String id = "";

    private String type = "";
    private int retries = TaskDefinition.DEFAULT_TASK_RETRIES;

    private Map headers = new HashMap<>();

    private List inputs = new ArrayList<>();
    private List outputs = new ArrayList<>();

    private boolean end = false;

    @JsonProperty("goto")
    private String next;

    @JsonProperty("switch")
    private List cases = new ArrayList<>();

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public int getRetries()
    {
        return retries;
    }

    public void setRetries(int retries)
    {
        this.retries = retries;
    }

    public Map getHeaders()
    {
        return headers;
    }

    public void setHeaders(Map headers)
    {
        this.headers = headers;
    }

    public List getInputs()
    {
        return inputs;
    }

    public void setInputs(List inputs)
    {
        this.inputs = inputs;
    }

    public List getOutputs()
    {
        return outputs;
    }

    public void setOutputs(List outputs)
    {
        this.outputs = outputs;
    }


    public List getCases()
    {
        return cases;
    }

    public void setCases(List cases)
    {
        this.cases = cases;
    }

    public String getNext()
    {
        return next;
    }

    public void setNext(String next)
    {
        this.next = next;
    }

    public boolean isEnd()
    {
        return end;
    }

    public void setEnd(boolean end)
    {
        this.end = end;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy