--- /dev/null
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class ErrorEndEvent extends Element {
+ @JsonProperty("parameter")
+ private Parameter parameter;
+
+ public Parameter getParameter() {
+ return parameter;
+ }
+
+ public void setParameter(Parameter parameter) {
+ this.parameter = parameter;
+ }
+
+}
--- /dev/null
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class ErrorStartEvent extends Element {
+ @JsonProperty("parameter")
+ private Parameter parameter;
+
+ public Parameter getParameter() {
+ return parameter;
+ }
+
+ public void setParameter(Parameter parameter) {
+ this.parameter = parameter;
+ }
+
+}
import org.onap.sdc.workflowdesigner.model.DataObject;\r
import org.onap.sdc.workflowdesigner.model.Element;\r
import org.onap.sdc.workflowdesigner.model.EndEvent;\r
+import org.onap.sdc.workflowdesigner.model.ErrorEndEvent;\r
+import org.onap.sdc.workflowdesigner.model.ErrorStartEvent;\r
import org.onap.sdc.workflowdesigner.model.ExclusiveGateway;\r
import org.onap.sdc.workflowdesigner.model.IntermediateCatchEvent;\r
import org.onap.sdc.workflowdesigner.model.ParallelGateway;\r
case "endEvent":\r
element = MAPPER.readValue(jsonObject, EndEvent.class);\r
break;\r
+ case "errorStartEvent":\r
+ element = MAPPER.readValue(jsonObject, ErrorStartEvent.class);\r
+ break;\r
+ case "errorEndEvent":\r
+ element = MAPPER.readValue(jsonObject, ErrorEndEvent.class);\r
+ break;\r
case "intermediateCatchEvent":\r
element = MAPPER.readValue(jsonObject, IntermediateCatchEvent.class);\r
break;\r
--- /dev/null
+
+<endEvent id="${element.id}" name="${element.name}">
+ <errorEventDefinition errorRef="${element.parameter.value}" />
+</endEvent>
--- /dev/null
+
+<startEvent id="${element.id}" name="${element.name}">
+ <errorEventDefinition errorRef="${element.parameter.value}" />
+</startEvent>