String bpmn = buildBPMN(srcUri, processName);
String jsonBpmn = insertJson2Bpmn(json, bpmn);
- save2SDC(json, jsonBpmn);
+// save2SDC(json, jsonBpmn);
FileCommonUtils.write(WORKFLOW_XML_TEMP_FILE_NAME, jsonBpmn);
return Response.status(Response.Status.OK).entity(json).build();
\r
private String type;\r
\r
+ private IconData icon;\r
+ \r
private Content content;\r
\r
/**\r
this.type = type;\r
}\r
\r
+ /**\r
+ * @return the icon\r
+ */\r
+ public IconData getIcon() {\r
+ return icon;\r
+ }\r
+\r
+ /**\r
+ * @param icon the icon to set\r
+ */\r
+ public void setIcon(IconData icon) {\r
+ this.icon = icon;\r
+ }\r
+\r
/**\r
* @return the content\r
*/\r
--- /dev/null
+/**\r
+ * Copyright (c) 2018 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.resources.entity;\r
+\r
+/**\r
+ *\r
+ */\r
+public class IconData {\r
+ private String name;\r
+ \r
+ private int width;\r
+ \r
+ private int height;\r
+\r
+ /**\r
+ * @return the name\r
+ */\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ /**\r
+ * @param name the name to set\r
+ */\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ /**\r
+ * @return the width\r
+ */\r
+ public int getWidth() {\r
+ return width;\r
+ }\r
+\r
+ /**\r
+ * @param width the width to set\r
+ */\r
+ public void setWidth(int width) {\r
+ this.width = width;\r
+ }\r
+\r
+ /**\r
+ * @return the height\r
+ */\r
+ public int getHeight() {\r
+ return height;\r
+ }\r
+\r
+ /**\r
+ * @param height the height to set\r
+ */\r
+ public void setHeight(int height) {\r
+ this.height = height;\r
+ }\r
+ \r
+ \r
+\r
+}\r