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.apihandler.camundabeans;
23 import com.fasterxml.jackson.annotation.JsonProperty;
26 * JavaBean JSON class for a "variables" which contains the xml payload that will be passed to the Camunda process
30 public class CamundaResponse {
32 @JsonProperty("response")
33 private String response;
34 @JsonProperty("messageCode")
35 private int messageCode;
36 @JsonProperty("message")
37 private String message;
38 @JsonProperty("processInstanceID")
39 private String processInstanceID;
40 @JsonProperty("variables")
41 private String variables;
43 public String getProcessInstanceID() {
44 return processInstanceID;
47 public void setProcessInstanceID(String processInstanceID) {
48 this.processInstanceID = processInstanceID;
51 public String getVariables() {
55 public void setVariables(String variables) {
56 this.variables = variables;
59 public CamundaResponse() {}
61 public String getResponse() {
65 public void setResponse(String response) {
66 this.response = response;
69 public int getMessageCode() {
73 public void setMessageCode(int messageCode) {
74 this.messageCode = messageCode;
77 public String getMessage() {
81 public void setMessage(String message) {
82 this.message = message;
86 public String toString() {
87 return "CamundaResponse [response=" + response + ", messageCode=" + messageCode + ", message=" + message + "]";