added svcapi ui and camunda code
[it/otf.git] / otf-camunda / src / main / java / org / oran / otf / event / TestInstanceIncidentEvent.java
diff --git a/otf-camunda/src/main/java/org/oran/otf/event/TestInstanceIncidentEvent.java b/otf-camunda/src/main/java/org/oran/otf/event/TestInstanceIncidentEvent.java
new file mode 100644 (file)
index 0000000..0bb5eb6
--- /dev/null
@@ -0,0 +1,59 @@
+/*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
+#                                                                              #\r
+#   Licensed under the Apache License, Version 2.0 (the "License");            #\r
+#   you may not use this file except in compliance with the License.           #\r
+#   You may obtain a copy of the License at                                    #\r
+#                                                                              #\r
+#       http://www.apache.org/licenses/LICENSE-2.0                             #\r
+#                                                                              #\r
+#   Unless required by applicable law or agreed to in writing, software        #\r
+#   distributed under the License is distributed on an "AS IS" BASIS,          #\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
+#   See the License for the specific language governing permissions and        #\r
+#   limitations under the License.                                             #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.event;\r
+\r
+import org.camunda.bpm.engine.impl.incident.IncidentContext;\r
+import org.springframework.context.ApplicationEvent;\r
+\r
+public class TestInstanceIncidentEvent extends ApplicationEvent {\r
+\r
+  private IncidentContext context;\r
+  private String message;\r
+  private String type;\r
+\r
+  public TestInstanceIncidentEvent(Object source, IncidentContext context, String message,\r
+      String type) {\r
+    super(source);\r
+    this.context = context;\r
+    this.message = message;\r
+    this.type = type;\r
+  }\r
+\r
+  public IncidentContext getContext() {\r
+    return context;\r
+  }\r
+\r
+  public void setContext(IncidentContext context) {\r
+    this.context = context;\r
+  }\r
+\r
+  public String getMessage() {\r
+    return message;\r
+  }\r
+\r
+  public void setMessage(String message) {\r
+    this.message = message;\r
+  }\r
+\r
+  public String getType() {\r
+    return type;\r
+  }\r
+\r
+  public void setType(String type) {\r
+    this.type = type;\r
+  }\r
+}\r