
nz.co.senanque.workflow.instances.TaskStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of madura-workflow Show documentation
Show all versions of madura-workflow Show documentation
Workflow engine that integrates Madura.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.04.01 at 11:03:38 AM NZDT
//
package nz.co.senanque.workflow.instances;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for TaskStatus.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="TaskStatus">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="pending"/>
* <enumeration value="done"/>
* <enumeration value="busy"/>
* <enumeration value="error"/>
* <enumeration value="aborted"/>
* <enumeration value="aborting"/>
* <enumeration value="wait"/>
* <enumeration value="timeout"/>
* <enumeration value="go"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "TaskStatus")
@XmlEnum
public enum TaskStatus {
@XmlEnumValue("pending")
PENDING("pending"),
@XmlEnumValue("done")
DONE("done"),
@XmlEnumValue("busy")
BUSY("busy"),
@XmlEnumValue("error")
ERROR("error"),
@XmlEnumValue("aborted")
ABORTED("aborted"),
@XmlEnumValue("aborting")
ABORTING("aborting"),
@XmlEnumValue("wait")
WAIT("wait"),
@XmlEnumValue("timeout")
TIMEOUT("timeout"),
@XmlEnumValue("go")
GO("go");
private final String value;
TaskStatus(String v) {
value = v;
}
public String value() {
return value;
}
public static TaskStatus fromValue(String v) {
for (TaskStatus c: TaskStatus.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy