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

com.docusign.maestro.model.WorkflowInstanceState Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy