Converter supports bpmn gateway elements(ParallelGateway, ExclusiveGateway).
Issue-ID: SDC-742
Change-Id: Id7906e0744b299f82053945254e339efe8d27ccb
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
--- /dev/null
+/**\r
+ * Copyright (c) 2017 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the Apache License, Version 2.0\r
+ * and the Eclipse Public License v1.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ * ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+package org.onap.sdc.workflowdesigner.model;\r
+\r
+public class ExclusiveGateway extends Element {\r
+ public static String type = "exclusiveGateway";\r
+}\r
--- /dev/null
+/**\r
+ * Copyright (c) 2017 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the Apache License, Version 2.0\r
+ * and the Eclipse Public License v1.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ * ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+package org.onap.sdc.workflowdesigner.model;\r
+\r
+public class ParallelGateway extends Element {\r
+ public static String type = "parallelGateway";\r
+}\r
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.ExclusiveGateway;\r
import org.onap.sdc.workflowdesigner.model.IntermediateCatchEvent;\r
+import org.onap.sdc.workflowdesigner.model.ParallelGateway;\r
import org.onap.sdc.workflowdesigner.model.Parameter;\r
import org.onap.sdc.workflowdesigner.model.Process;\r
import org.onap.sdc.workflowdesigner.model.ScriptTask;\r
case "scriptTask":\r
element = MAPPER.readValue(jsonObject, ScriptTask.class);\r
break;\r
+ case "exclusiveGateway":\r
+ element = MAPPER.readValue(jsonObject, ExclusiveGateway.class);\r
+ break;\r
+ case "parallelGateway":\r
+ element = MAPPER.readValue(jsonObject, ParallelGateway.class);\r
+ break;\r
default:\r
log.warn("Ignoring node: type '" + nodeType + "' is unkown");\r
return null;\r
--- /dev/null
+\r
+<exclusiveGateway id="${element.id}" name="${element.name}"></exclusiveGateway>
\ No newline at end of file
--- /dev/null
+\r
+<parallelGateway id="${element.id}" name="${element.name}"></parallelGateway>
\ No newline at end of file