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.openecomp.mso.apihandler.camundabeans;
24 import org.codehaus.jackson.annotate.JsonProperty;
27 * JavaBean JSON class for a "variables" which contains the xml payload that
28 * will be passed to the Camunda process
32 public class CamundaResponse {
34 @JsonProperty("response")
35 private String response;
36 @JsonProperty("messageCode")
37 private int messageCode;
38 @JsonProperty("message")
39 private String message;
40 @JsonProperty("processInstanceID")
41 private String processInstanceID;
42 @JsonProperty("variables")
43 private String variables;
45 public String getProcessInstanceID() {
46 return processInstanceID;
49 public void setProcessInstanceID(String processInstanceID) {
50 this.processInstanceID = processInstanceID;
53 public String getVariables() {
57 public void setVariables(String variables) {
58 this.variables = variables;
61 public CamundaResponse() {
64 public String getResponse() {
68 public void setResponse(String response) {
69 this.response = response;
72 public int getMessageCode() {
76 public void setMessageCode(int messageCode) {
77 this.messageCode = messageCode;
80 public String getMessage() {
84 public void setMessage(String message) {
85 this.message = message;
89 public String toString() {
90 return "CamundaResponse [response=" + response + ", messageCode="
91 + messageCode + ", message=" + message + "]";