--- /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 IntermediateCatchEvent extends Element {\r
+ private TimerEventDefinition timerEventDefinition;\r
+\r
+ public TimerEventDefinition getTimerEventDefinition() {\r
+ return timerEventDefinition;\r
+ }\r
+\r
+ public void setTimerEventDefinition(TimerEventDefinition timerEventDefinition) {\r
+ this.timerEventDefinition = timerEventDefinition;\r
+ }\r
+\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 TimerEventDefinition {\r
+ private String type;\r
+ private String timeDuration;\r
+ private String timeDate;\r
+ private String timeCycle;\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getTimeDuration() {\r
+ return timeDuration;\r
+ }\r
+\r
+ public void setTimeDuration(String timeDuration) {\r
+ this.timeDuration = timeDuration;\r
+ }\r
+\r
+ public String getTimeDate() {\r
+ return timeDate;\r
+ }\r
+\r
+ public void setTimeDate(String timeDate) {\r
+ this.timeDate = timeDate;\r
+ }\r
+\r
+ public String getTimeCycle() {\r
+ return timeCycle;\r
+ }\r
+\r
+ public void setTimeCycle(String timeCycle) {\r
+ this.timeCycle = timeCycle;\r
+ }\r
+\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.IntermediateCatchEvent;\r
import org.onap.sdc.workflowdesigner.model.Parameter;\r
import org.onap.sdc.workflowdesigner.model.Process;\r
import org.onap.sdc.workflowdesigner.model.SequenceFlow;\r
case "endEvent":\r
element = MAPPER.readValue(jsonObject, EndEvent.class);\r
break;\r
+ case "intermediateCatchEvent":\r
+ element = MAPPER.readValue(jsonObject, IntermediateCatchEvent.class);\r
+ break;\r
default:\r
log.warn("Ignoring node: type '" + nodeType + "' is unkown");\r
return null;\r
--- /dev/null
+\r
+<intermediateCatchEvent id="${element.id}" name="${element.name}">\r
+ <timerEventDefinition>\r
+ <timeDuration><![CDATA[${element.timerEventDefinition.timeDuration}]]></timeDuration>\r
+ </timerEventDefinition>\r
+</intermediateCatchEvent>\r