Trendsic Platform Service

<back to all web services

EngineWorkflowsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/engine/workflows

export class WorkflowVersionInfo
{
    public VersionNum: number;
    public Status: string;
    public CreatedBy: string;
    public CreatedAt: string;
    public PublishedAt?: string;

    public constructor(init?: Partial<WorkflowVersionInfo>) { (Object as any).assign(this, init); }
}

export class WorkflowView
{
    public WorkflowId: number;
    public SourceKey: string;
    public Name: string;
    public Vertical: string;
    public Pack: string;
    public Status: string;
    public VersionNum: number;
    public Description: string;
    public OwnerRole: string;
    public GraphJson: string;
    public Ok30: number;
    public Fail30: number;
    public Waiting: number;
    public UpdatedBy: string;
    public UpdatedAt?: string;
    public Versions: WorkflowVersionInfo[] = [];

    public constructor(init?: Partial<WorkflowView>) { (Object as any).assign(this, init); }
}

export class EngineWorkflowsResponse
{
    public Workflows: WorkflowView[] = [];
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<EngineWorkflowsResponse>) { (Object as any).assign(this, init); }
}

export class EngineWorkflowsRequest
{

    public constructor(init?: Partial<EngineWorkflowsRequest>) { (Object as any).assign(this, init); }
}

TypeScript EngineWorkflowsRequest DTOs

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

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}