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;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonRootName;
28 // This class must be 100% JSON-compatible with the BPMN WorkflowResponse class.
29 // TODO: BPMN and the API-H should use a common class.
32 * A synchronous response from a workflow.
34 @JsonRootName(value = "WorkflowResponse")
35 public class CamundaResponse {
37 @JsonProperty("processInstanceId")
38 private String processInstanceId;
40 @JsonProperty("messageCode")
41 private int messageCode;
43 @JsonProperty("message")
44 private String message;
46 @JsonProperty("variables")
47 private Map<String,String> variables;
49 @JsonProperty("content")
50 private String content;
52 public String getProcessInstanceId() {
53 return processInstanceId;
56 public void setProcessInstanceId(String processInstanceId) {
57 this.processInstanceId = processInstanceId;
60 public int getMessageCode() {
64 public void setMessageCode(int messageCode) {
65 this.messageCode = messageCode;
68 public String getMessage() {
72 public void setMessage(String message) {
73 this.message = message;
76 public Map<String,String> getVariables() {
80 public void setVariables(Map<String,String> variables) {
81 this.variables = variables;
84 public String getContent() {
88 public void setContent(String content) {
89 this.content = content;
93 public String toString() {
94 return getClass().getSimpleName() + "["
95 + "processInstanceId=" + processInstanceId
96 + ",messageCode=" + messageCode
97 + ",message=" + message
98 + ",variables=" + variables
99 + ",content=" + content