| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetWorkflowFlowchartResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
<Code>0</Code>
<Data>
<WorkflowNode>
<ActionDate>0001-01-01T00:00:00</ActionDate>
<ActionType>0</ActionType>
<Avatar>String</Avatar>
<ConfirmStatus>0</ConfirmStatus>
<ConfirmStatusText>String</ConfirmStatusText>
<DepartmentName>String</DepartmentName>
<Email>String</Email>
<IsCurrent>false</IsCurrent>
<IsSigned>false</IsSigned>
<IsUsingForm>false</IsUsingForm>
<OrderIndex>0</OrderIndex>
<ReasonReturn>String</ReasonReturn>
<ReturnDate>0001-01-01T00:00:00</ReturnDate>
<SignAt>0001-01-01T00:00:00</SignAt>
<SignStatusText>String</SignStatusText>
<SignedFileId>0</SignedFileId>
<SignedFileName>String</SignedFileName>
<SignerId>0</SignerId>
<SignerName>String</SignerName>
<SignerType>0</SignerType>
<Status>0</Status>
<StatusText>String</StatusText>
<StepId>0</StepId>
<StepName>String</StepName>
<Telephone>String</Telephone>
</WorkflowNode>
</Data>
<Message>String</Message>
</GetWorkflowFlowchartResponse>