| GET | /WorkflowStep/flowchart |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetWorkflowFlowchartRequest
{
public Integer workflowId = null;
public Integer getWorkflowId() { return workflowId; }
public GetWorkflowFlowchartRequest setWorkflowId(Integer value) { this.workflowId = value; return this; }
}
public static class GetWorkflowFlowchartResponse implements IResponseRequest
{
public Integer code = null;
public String message = null;
public ArrayList<WorkflowNode> data = null;
public Integer getCode() { return code; }
public GetWorkflowFlowchartResponse setCode(Integer value) { this.code = value; return this; }
public String getMessage() { return message; }
public GetWorkflowFlowchartResponse setMessage(String value) { this.message = value; return this; }
public ArrayList<WorkflowNode> getData() { return data; }
public GetWorkflowFlowchartResponse setData(ArrayList<WorkflowNode> value) { this.data = value; return this; }
}
public static class WorkflowNode
{
public Integer stepId = null;
public String stepName = null;
public Integer signerId = null;
public String signerName = null;
public String departmentName = null;
public String telephone = null;
public String avatar = null;
public String email = null;
public Short signerType = null;
public Short actionType = null;
public Integer status = null;
public String statusText = null;
public String signStatusText = null;
public Date signAt = null;
public Boolean isSigned = null;
public Integer confirmStatus = null;
public String confirmStatusText = null;
public Integer signedFileId = null;
public String signedFileName = null;
public Boolean isCurrent = null;
public String reasonReturn = null;
public Date returnDate = null;
public Date actionDate = null;
public Integer orderIndex = null;
public Boolean isUsingForm = null;
public Integer getStepId() { return stepId; }
public WorkflowNode setStepId(Integer value) { this.stepId = value; return this; }
public String getStepName() { return stepName; }
public WorkflowNode setStepName(String value) { this.stepName = value; return this; }
public Integer getSignerId() { return signerId; }
public WorkflowNode setSignerId(Integer value) { this.signerId = value; return this; }
public String getSignerName() { return signerName; }
public WorkflowNode setSignerName(String value) { this.signerName = value; return this; }
public String getDepartmentName() { return departmentName; }
public WorkflowNode setDepartmentName(String value) { this.departmentName = value; return this; }
public String getTelephone() { return telephone; }
public WorkflowNode setTelephone(String value) { this.telephone = value; return this; }
public String getAvatar() { return avatar; }
public WorkflowNode setAvatar(String value) { this.avatar = value; return this; }
public String getEmail() { return email; }
public WorkflowNode setEmail(String value) { this.email = value; return this; }
public Short getSignerType() { return signerType; }
public WorkflowNode setSignerType(Short value) { this.signerType = value; return this; }
public Short getActionType() { return actionType; }
public WorkflowNode setActionType(Short value) { this.actionType = value; return this; }
public Integer getStatus() { return status; }
public WorkflowNode setStatus(Integer value) { this.status = value; return this; }
public String getStatusText() { return statusText; }
public WorkflowNode setStatusText(String value) { this.statusText = value; return this; }
public String getSignStatusText() { return signStatusText; }
public WorkflowNode setSignStatusText(String value) { this.signStatusText = value; return this; }
public Date getSignAt() { return signAt; }
public WorkflowNode setSignAt(Date value) { this.signAt = value; return this; }
public Boolean getIsSigned() { return isSigned; }
public WorkflowNode setIsSigned(Boolean value) { this.isSigned = value; return this; }
public Integer getConfirmStatus() { return confirmStatus; }
public WorkflowNode setConfirmStatus(Integer value) { this.confirmStatus = value; return this; }
public String getConfirmStatusText() { return confirmStatusText; }
public WorkflowNode setConfirmStatusText(String value) { this.confirmStatusText = value; return this; }
public Integer getSignedFileId() { return signedFileId; }
public WorkflowNode setSignedFileId(Integer value) { this.signedFileId = value; return this; }
public String getSignedFileName() { return signedFileName; }
public WorkflowNode setSignedFileName(String value) { this.signedFileName = value; return this; }
public Boolean getIsCurrent() { return isCurrent; }
public WorkflowNode setIsCurrent(Boolean value) { this.isCurrent = value; return this; }
public String getReasonReturn() { return reasonReturn; }
public WorkflowNode setReasonReturn(String value) { this.reasonReturn = value; return this; }
public Date getReturnDate() { return returnDate; }
public WorkflowNode setReturnDate(Date value) { this.returnDate = value; return this; }
public Date getActionDate() { return actionDate; }
public WorkflowNode setActionDate(Date value) { this.actionDate = value; return this; }
public Integer getOrderIndex() { return orderIndex; }
public WorkflowNode setOrderIndex(Integer value) { this.orderIndex = value; return this; }
public Boolean getIsUsingForm() { return isUsingForm; }
public WorkflowNode setIsUsingForm(Boolean value) { this.isUsingForm = value; return this; }
}
}
Java GetWorkflowFlowchartRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /WorkflowStep/flowchart HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"code":0,"message":"String","data":[{"stepId":0,"stepName":"String","signerId":0,"signerName":"String","departmentName":"String","telephone":"String","avatar":"String","email":"String","signerType":0,"actionType":0,"status":0,"statusText":"String","signStatusText":"String","signAt":"0001-01-01T00:00:00.0000000+07:06","isSigned":false,"confirmStatus":0,"confirmStatusText":"String","signedFileId":0,"signedFileName":"String","isCurrent":false,"reasonReturn":"String","returnDate":"0001-01-01T00:00:00.0000000+07:06","actionDate":"0001-01-01T00:00:00.0000000+07:06","orderIndex":0,"isUsingForm":false}]}