added svcapi ui and camunda code
[it/otf.git] / otf-camunda / src / main / java / org / oran / otf / camunda / model / WorkflowResponse.java
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\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
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\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
15 \r
16 \r
17 package org.oran.otf.camunda.model;\r
18 \r
19 import org.oran.otf.common.model.TestExecution;\r
20 import org.oran.otf.common.utility.gson.Convert;\r
21 \r
22 import java.util.Map;\r
23 \r
24 /**\r
25  * @version 1.0 Synchronous workflow response bean\r
26  */\r
27 public class WorkflowResponse {\r
28 \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
35 \r
36   public String getResponse() {\r
37     return response;\r
38   }\r
39 \r
40   public void setResponse(String response) {\r
41     this.response = response;\r
42   }\r
43 \r
44   public String getMessage() {\r
45     return message;\r
46   }\r
47 \r
48   public void setMessage(String message) {\r
49     this.message = message;\r
50   }\r
51 \r
52   public String getProcessInstanceId() {\r
53     return processInstanceId;\r
54   }\r
55 \r
56   public void setProcessInstanceId(String pID) {\r
57     this.processInstanceId = pID;\r
58   }\r
59 \r
60   public Map<String, String> getVariables() {\r
61     return variables;\r
62   }\r
63 \r
64   public void setVariables(Map<String, String> variables) {\r
65     this.variables = variables;\r
66   }\r
67 \r
68   public int getMessageCode() {\r
69     return messageCode;\r
70   }\r
71 \r
72   public void setMessageCode(int messageCode) {\r
73     this.messageCode = messageCode;\r
74   }\r
75 \r
76   public TestExecution getTestExecution() {\r
77     return testExecution;\r
78   }\r
79 \r
80   public void setTestExecution(TestExecution testExecution) {\r
81     this.testExecution = testExecution;\r
82   }\r
83 \r
84   @Override\r
85   public String toString() {\r
86     return Convert.objectToJson(this);\r
87   }\r
88 }\r