Containerization feature of SO
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / common / workflow / context / WorkflowResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.bpmn.common.workflow.context;
22
23 import java.util.Map;
24
25 /**
26  * @version 1.0
27  * Synchronous workflow response bean 
28  *
29  */
30
31 public class WorkflowResponse {
32
33         private String response;
34         private String message;
35         private String processInstanceID;
36         private Map<String,String> variables;
37         private int messageCode;
38         
39         public String getResponse() {
40                 return response;
41         }
42         public void setResponse(String response) {
43                 this.response = response;
44         }
45         public String getMessage() {
46                 return message;
47         }
48         public void setMessage(String message) {
49                 this.message = message;
50         }
51         public String getProcessInstanceID() {
52                 return processInstanceID;
53         }
54         public void setProcessInstanceID(String pID) {
55                 this.processInstanceID = pID;
56         }
57         public Map<String, String> getVariables() {
58                 return variables;
59         }
60         public void setVariables(Map<String, String> variables) {
61                 this.variables = variables;
62         }
63         public void setMessageCode(int messageCode) {
64                 this.messageCode = messageCode;
65         }
66         
67         public int getMessageCode() {
68                 return messageCode;
69         }
70         
71         @Override
72         public String toString() {
73                 return "WorkflowResponse [response=" + response + ", message=" + message + ", processInstanceID="
74                                 + processInstanceID + ", variables=" + variables + ", messageCode=" + messageCode + "]";
75         }
76         
77         
78 }