2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.bpmn.common.workflow.context;
27 * Synchronous workflow response bean
31 public class WorkflowResponse {
33 private String response;
34 private String message;
35 private String processInstanceID;
36 private Map<String,String> variables;
37 private int messageCode;
39 public String getResponse() {
42 public void setResponse(String response) {
43 this.response = response;
45 public String getMessage() {
48 public void setMessage(String message) {
49 this.message = message;
51 public String getProcessInstanceID() {
52 return processInstanceID;
54 public void setProcessInstanceID(String pID) {
55 this.processInstanceID = pID;
57 public Map<String, String> getVariables() {
60 public void setVariables(Map<String, String> variables) {
61 this.variables = variables;
63 public void setMessageCode(int messageCode) {
64 this.messageCode = messageCode;
67 public int getMessageCode() {
72 public String toString() {
73 return "WorkflowResponse [response=" + response + ", message=" + message + ", processInstanceID="
74 + processInstanceID + ", variables=" + variables + ", messageCode=" + messageCode + "]";