--- /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 ScriptTask extends Element {\r
+ private String scriptFormat;\r
+ private String script;\r
+\r
+ public String getScriptFormat() {\r
+ return scriptFormat;\r
+ }\r
+\r
+ public void setScriptFormat(String scriptFormat) {\r
+ this.scriptFormat = scriptFormat;\r
+ }\r
+\r
+ public String getScript() {\r
+ return script;\r
+ }\r
+\r
+ public void setScript(String script) {\r
+ this.script = script;\r
+ }\r
+}\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.ScriptTask;\r
import org.onap.sdc.workflowdesigner.model.SequenceFlow;\r
import org.onap.sdc.workflowdesigner.model.StartEvent;\r
import org.slf4j.Logger;\r
case "intermediateCatchEvent":\r
element = MAPPER.readValue(jsonObject, IntermediateCatchEvent.class);\r
break;\r
+ case "scriptTask":\r
+ element = MAPPER.readValue(jsonObject, ScriptTask.class);\r
+ break;\r
default:\r
log.warn("Ignoring node: type '" + nodeType + "' is unkown");\r
return null;\r