com.docusign.maestro.model.WorkflowInstanceState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-maestro-java Show documentation
Show all versions of docusign-maestro-java Show documentation
The Docusign NuGet package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-maestro-csharp-client repository.
package com.docusign.maestro.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/** Current Workflow Instance state (completed, failed, In-progress) */
public enum WorkflowInstanceState {
CREATED("Created"),
IN_PROGRESS("In Progress"),
COMPLETED("Completed"),
FAILED("Failed"),
CANCELED("Canceled");
private String value;
WorkflowInstanceState(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static WorkflowInstanceState fromValue(String value) {
for (WorkflowInstanceState b : WorkflowInstanceState.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
}