Trendsic Platform Service

<back to all web services

EngineWorkflowsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/engine/workflows
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class EngineWorkflowsRequest
    {
        
    }

    public static class EngineWorkflowsResponse
    {
        public ArrayList<WorkflowView> Workflows = new ArrayList<WorkflowView>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<WorkflowView> getWorkflows() { return Workflows; }
        public EngineWorkflowsResponse setWorkflows(ArrayList<WorkflowView> value) { this.Workflows = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public EngineWorkflowsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class WorkflowView
    {
        public Integer WorkflowId = null;
        public String SourceKey = null;
        public String Name = null;
        public String Vertical = null;
        public String Pack = null;
        public String Status = null;
        public Integer VersionNum = null;
        public String Description = null;
        public String OwnerRole = null;
        public String GraphJson = null;
        public Integer Ok30 = null;
        public Integer Fail30 = null;
        public Integer Waiting = null;
        public String UpdatedBy = null;
        public Date UpdatedAt = null;
        public ArrayList<WorkflowVersionInfo> Versions = new ArrayList<WorkflowVersionInfo>();
        
        public Integer getWorkflowId() { return WorkflowId; }
        public WorkflowView setWorkflowId(Integer value) { this.WorkflowId = value; return this; }
        public String getSourceKey() { return SourceKey; }
        public WorkflowView setSourceKey(String value) { this.SourceKey = value; return this; }
        public String getName() { return Name; }
        public WorkflowView setName(String value) { this.Name = value; return this; }
        public String getVertical() { return Vertical; }
        public WorkflowView setVertical(String value) { this.Vertical = value; return this; }
        public String getPack() { return Pack; }
        public WorkflowView setPack(String value) { this.Pack = value; return this; }
        public String getStatus() { return Status; }
        public WorkflowView setStatus(String value) { this.Status = value; return this; }
        public Integer getVersionNum() { return VersionNum; }
        public WorkflowView setVersionNum(Integer value) { this.VersionNum = value; return this; }
        public String getDescription() { return Description; }
        public WorkflowView setDescription(String value) { this.Description = value; return this; }
        public String getOwnerRole() { return OwnerRole; }
        public WorkflowView setOwnerRole(String value) { this.OwnerRole = value; return this; }
        public String getGraphJson() { return GraphJson; }
        public WorkflowView setGraphJson(String value) { this.GraphJson = value; return this; }
        public Integer getOk30() { return Ok30; }
        public WorkflowView setOk30(Integer value) { this.Ok30 = value; return this; }
        public Integer getFail30() { return Fail30; }
        public WorkflowView setFail30(Integer value) { this.Fail30 = value; return this; }
        public Integer getWaiting() { return Waiting; }
        public WorkflowView setWaiting(Integer value) { this.Waiting = value; return this; }
        public String getUpdatedBy() { return UpdatedBy; }
        public WorkflowView setUpdatedBy(String value) { this.UpdatedBy = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public WorkflowView setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public ArrayList<WorkflowVersionInfo> getVersions() { return Versions; }
        public WorkflowView setVersions(ArrayList<WorkflowVersionInfo> value) { this.Versions = value; return this; }
    }

    public static class WorkflowVersionInfo
    {
        public Integer VersionNum = null;
        public String Status = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date PublishedAt = null;
        
        public Integer getVersionNum() { return VersionNum; }
        public WorkflowVersionInfo setVersionNum(Integer value) { this.VersionNum = value; return this; }
        public String getStatus() { return Status; }
        public WorkflowVersionInfo setStatus(String value) { this.Status = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public WorkflowVersionInfo setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public WorkflowVersionInfo setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getPublishedAt() { return PublishedAt; }
        public WorkflowVersionInfo setPublishedAt(Date value) { this.PublishedAt = value; return this; }
    }

}

Java EngineWorkflowsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/engine/workflows HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Workflows":[{"WorkflowId":0,"SourceKey":"String","Name":"String","Vertical":"String","Pack":"String","Status":"String","VersionNum":0,"Description":"String","OwnerRole":"String","GraphJson":"String","Ok30":0,"Fail30":0,"Waiting":0,"UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Versions":[{"VersionNum":0,"Status":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","PublishedAt":"0001-01-01T00:00:00.0000000"}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}