1 /* Copyright (c) 2019 AT&T Intellectual Property. #
\r
3 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
4 # you may not use this file except in compliance with the License. #
\r
5 # You may obtain a copy of the License at #
\r
7 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
9 # Unless required by applicable law or agreed to in writing, software #
\r
10 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
12 # See the License for the specific language governing permissions and #
\r
13 # limitations under the License. #
\r
14 ##############################################################################*/
\r
17 package org.oran.otf.camunda.model;
\r
19 import org.oran.otf.common.model.TestExecution;
\r
20 import org.oran.otf.common.utility.gson.Convert;
\r
22 import java.util.Map;
\r
25 * @version 1.0 Synchronous workflow response bean
\r
27 public class WorkflowResponse {
\r
29 private String response;
\r
30 private String message;
\r
31 private String processInstanceId;
\r
32 private Map<String, String> variables;
\r
33 private TestExecution testExecution;
\r
34 private int messageCode;
\r
36 public String getResponse() {
\r
40 public void setResponse(String response) {
\r
41 this.response = response;
\r
44 public String getMessage() {
\r
48 public void setMessage(String message) {
\r
49 this.message = message;
\r
52 public String getProcessInstanceId() {
\r
53 return processInstanceId;
\r
56 public void setProcessInstanceId(String pID) {
\r
57 this.processInstanceId = pID;
\r
60 public Map<String, String> getVariables() {
\r
64 public void setVariables(Map<String, String> variables) {
\r
65 this.variables = variables;
\r
68 public int getMessageCode() {
\r
72 public void setMessageCode(int messageCode) {
\r
73 this.messageCode = messageCode;
\r
76 public TestExecution getTestExecution() {
\r
77 return testExecution;
\r
80 public void setTestExecution(TestExecution testExecution) {
\r
81 this.testExecution = testExecution;
\r
85 public String toString() {
\r
86 return Convert.objectToJson(this);
\r