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
27 * will be passed to the Camunda process
31 public class CamundaResponse {
33 @JsonProperty("response")
34 private String response;
35 @JsonProperty("messageCode")
36 private int messageCode;
37 @JsonProperty("message")
38 private String message;
39 @JsonProperty("processInstanceID")
40 private String processInstanceID;
41 @JsonProperty("variables")
42 private String variables;
44 public String getProcessInstanceID() {
45 return processInstanceID;
48 public void setProcessInstanceID(String processInstanceID) {
49 this.processInstanceID = processInstanceID;
52 public String getVariables() {
56 public void setVariables(String variables) {
57 this.variables = variables;
60 public CamundaResponse() {
63 public String getResponse() {
67 public void setResponse(String response) {
68 this.response = response;
71 public int getMessageCode() {
75 public void setMessageCode(int messageCode) {
76 this.messageCode = messageCode;
79 public String getMessage() {
83 public void setMessage(String message) {
84 this.message = message;
88 public String toString() {
89 return "CamundaResponse [response=" + response + ", messageCode="
90 + messageCode + ", message=" + message + "]";