/** * Copyright (c) 2015 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.wso2.carbon.bpmn.rest.model.runtime; import org.wso2.carbon.bpmn.rest.engine.variable.RestVariable; import javax.xml.bind.annotation.*; import java.util.ArrayList; import java.util.List; @XmlRootElement(name = "ProcessInstanceResponse") @XmlAccessorType(XmlAccessType.FIELD) public class ProcessInstanceResponse { protected String id; protected String url; protected String businessKey; protected boolean suspended; protected boolean ended; protected String processDefinitionId; protected String processDefinitionUrl; protected String activityId; @XmlElementWrapper(name = "RestVariables") @XmlElement(name = "RestVariable", type = RestVariable.class) protected List<RestVariable> variables = new ArrayList<RestVariable>(); protected String tenantId; //Added by Ryan Johnston protected boolean completed; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getBusinessKey() { return businessKey; } public void setBusinessKey(String businessKey) { this.businessKey = businessKey; } public boolean isSuspended() { return suspended; } public void setSuspended(boolean suspended) { this.suspended = suspended; } public boolean isEnded() { return ended; } public void setEnded(boolean ended) { this.ended = ended; } public String getProcessDefinitionId() { return processDefinitionId; } public void setProcessDefinitionId(String processDefinitionId) { this.processDefinitionId = processDefinitionId; } public String getProcessDefinitionUrl() { return processDefinitionUrl; } public void setProcessDefinitionUrl(String processDefinitionUrl) { this.processDefinitionUrl = processDefinitionUrl; } public String getActivityId() { return activityId; } public void setActivityId(String activityId) { this.activityId = activityId; } public List<RestVariable> getVariables() { return variables; } public void setVariables(List<RestVariable> variables) { this.variables = variables; } public void addVariable(RestVariable variable) { variables.add(variable); } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getTenantId() { return tenantId; } //Added by Ryan Johnston public boolean isCompleted() { return completed; } //Added by Ryan Johnston public void setCompleted(boolean completed) { this.completed = completed; } }