git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Tue, 3 May 2022 10:36:11 +0000 (10:36 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Tue, 3 May 2022 10:36:11 +0000 (10:36 +0000)
server/user.jobengine.osgi.server/src/user/jobengine/server/ast/JobTemplate.java

index 546632f1d1d8d5517d2c381e3765ce4e4598e913..71ee6171e1e122f4421bb13640c0f9814fb02264 100644 (file)
@@ -242,19 +242,29 @@ public class JobTemplate extends AST implements Serializable {
                        if (getDeclarationSequence() != null) {\r
                                Element declarations = document.createElement("declarations");\r
                                root.appendChild(declarations);\r
+                               Element parameters = document.createElement("parameters");\r
+                               Element variables = document.createElement("variables");\r
+                               declarations.appendChild(parameters);\r
+                               declarations.appendChild(variables);\r
+\r
                                for (int i = 0; i < getDeclarationSequence().getDeclarations().size(); i++) {\r
                                        Element declarationElement = null;\r
                                        if (getDeclarationSequence().getDeclarations().get(i).getClass().getSimpleName()\r
                                                        .equals("ParameterDeclaration")) {\r
                                                declarationElement = document.createElement("parameter");\r
+                                               declarationElement.setAttribute("name",\r
+                                                               getDeclarationSequence().getDeclarations().get(i).getName());\r
+                                               declarationElement.setAttribute("type",\r
+                                                               getDeclarationSequence().getDeclarations().get(i).getType());\r
+                                               parameters.appendChild(declarationElement);\r
                                        } else {\r
                                                declarationElement = document.createElement("variable");\r
+                                               declarationElement.setAttribute("name",\r
+                                                               getDeclarationSequence().getDeclarations().get(i).getName());\r
+                                               declarationElement.setAttribute("type",\r
+                                                               getDeclarationSequence().getDeclarations().get(i).getType());\r
+                                               variables.appendChild(declarationElement);\r
                                        }\r
-                                       declarationElement.setAttribute("name",\r
-                                                       getDeclarationSequence().getDeclarations().get(i).getName());\r
-                                       declarationElement.setAttribute("type",\r
-                                                       getDeclarationSequence().getDeclarations().get(i).getType());\r
-                                       declarations.appendChild(declarationElement);\r
                                }\r
                        }\r
                        if (getCommandSequence() != null) {\r