GET api/Workflow/GetStates?projectId={projectId}&projectType={projectType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

integer

Required

projectType

integer

Required

Body Parameters

None.

Response Information

Resource Description

API_Data_ListOfWorkflowState
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of WorkflowState

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "IsClosed": 3,
      "Gui": {
        "Id": 1,
        "X": 2,
        "Y": 3,
        "Z": 4,
        "Width": 5,
        "Height": 6,
        "Shape": 7,
        "BorderColor": "sample string 8",
        "FillColor": "sample string 9",
        "FillColor1": "sample string 10",
        "TextColor": "sample string 11",
        "nBorderColor": 12,
        "nFillColor": 13,
        "nFillColor1": 14,
        "nTextColor": 15
      }
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "IsClosed": 3,
      "Gui": {
        "Id": 1,
        "X": 2,
        "Y": 3,
        "Z": 4,
        "Width": 5,
        "Height": 6,
        "Shape": 7,
        "BorderColor": "sample string 8",
        "FillColor": "sample string 9",
        "FillColor1": "sample string 10",
        "TextColor": "sample string 11",
        "nBorderColor": 12,
        "nFillColor": 13,
        "nFillColor1": 14,
        "nTextColor": 15
      }
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfWorkflowState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Workflow">
    <d2p1:WorkflowState>
      <d2p1:Gui>
        <d2p1:BorderColor>sample string 8</d2p1:BorderColor>
        <d2p1:FillColor>sample string 9</d2p1:FillColor>
        <d2p1:FillColor1>sample string 10</d2p1:FillColor1>
        <d2p1:Height>6</d2p1:Height>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Shape>7</d2p1:Shape>
        <d2p1:TextColor>sample string 11</d2p1:TextColor>
        <d2p1:Width>5</d2p1:Width>
        <d2p1:X>2</d2p1:X>
        <d2p1:Y>3</d2p1:Y>
        <d2p1:Z>4</d2p1:Z>
        <d2p1:nBorderColor>12</d2p1:nBorderColor>
        <d2p1:nFillColor>13</d2p1:nFillColor>
        <d2p1:nFillColor1>14</d2p1:nFillColor1>
        <d2p1:nTextColor>15</d2p1:nTextColor>
      </d2p1:Gui>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsClosed>3</d2p1:IsClosed>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:WorkflowState>
    <d2p1:WorkflowState>
      <d2p1:Gui>
        <d2p1:BorderColor>sample string 8</d2p1:BorderColor>
        <d2p1:FillColor>sample string 9</d2p1:FillColor>
        <d2p1:FillColor1>sample string 10</d2p1:FillColor1>
        <d2p1:Height>6</d2p1:Height>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Shape>7</d2p1:Shape>
        <d2p1:TextColor>sample string 11</d2p1:TextColor>
        <d2p1:Width>5</d2p1:Width>
        <d2p1:X>2</d2p1:X>
        <d2p1:Y>3</d2p1:Y>
        <d2p1:Z>4</d2p1:Z>
        <d2p1:nBorderColor>12</d2p1:nBorderColor>
        <d2p1:nFillColor>13</d2p1:nFillColor>
        <d2p1:nFillColor1>14</d2p1:nFillColor1>
        <d2p1:nTextColor>15</d2p1:nTextColor>
      </d2p1:Gui>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsClosed>3</d2p1:IsClosed>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:WorkflowState>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfWorkflowState>