Skip to content
Snippets Groups Projects
Commit 24266931 authored by AndiGob's avatar AndiGob
Browse files

UNICADOworkflow: -update exit code condition in all json configuration files

parent 7dfabacd
No related branches found
No related tags found
2 merge requests!48Initial open source version,!42UNICADOworkflow: -update exit code condition in all json configuration files
Showing
with 18 additions and 18 deletions
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: aerodynamic_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: aerodynamic_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: constraint_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: constraint_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -38,7 +38,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: cost_estimation' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: cost_estimation' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: cpacsInterface' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: cpacsInterface' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -38,7 +38,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: create_mission_xml' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: create_mission_xml' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: ecological_assessment' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: ecological_assessment' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: empennage_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: empennage_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -45,7 +45,7 @@
"endpointFolder" : ""
}
],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: fuselage_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: fuselage_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -39,7 +39,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif not ${addProp:exitCode} == 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_temp_working_directory = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_temp_working_directory + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_temp_working_directory + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: initial_sizing' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif not ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_temp_working_directory = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_temp_working_directory + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_temp_working_directory + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: initial_sizing' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -38,7 +38,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: landing_gear_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: landing_gear_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + \t\t'/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: mission_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + \t\t'/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: mission_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: performance_assessment' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: performance_assessment' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: propulsion_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: propulsion_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -54,7 +54,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: report_generator' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: report_generator' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: systems_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: systems_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
......@@ -38,7 +38,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: tank_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\t\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: tank_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -38,7 +38,7 @@
"inputExecutionConstraint" : "-",
"endpointFolder" : ""
} ],
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: weight_and_balance_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript" : "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: weight_and_balance_analysis' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript" : "",
"setToolDirAsWorkingDir" : true,
"toolDescription" : "",
......
......@@ -44,7 +44,7 @@
"endpointFolder": ""
}
],
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} == 1:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: wing_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"postScript": "import os\r\ncurrent_working_dir = \"${in:current_workflow_name}\"\r\n\r\nif ${addProp:exitCode} != 0:\r\n\t### read sys path for python scripts\r\n\tuser_path_string = os.path.expanduser(\"~\")\r\n\r\n\t## convert path of curent working directory to a python path -> \\ to /\r\n\tuser_path_string = user_path_string.replace(os.sep, '/')\r\n\r\n\t## generate sys paths from file in .rce-directory\r\n\tinstall_path = open(user_path_string + '/.rce/default/integration/tools/common/absolutPathToUNICADOInstallDirectory.txt','r')\r\n\tinstall_path_directory = str(install_path.read())\r\n\tinstall_path_directory = install_path_directory.replace(os.sep, '/')\r\n\r\n\t## path to working directory of rce \r\n\tpath_of_working_directory_rce = install_path_directory + 'workingDirectoryRCE/' + current_working_dir\r\n\r\n\t## write error data to system\r\n\terror_dat = open(path_of_working_directory_rce + '/temp/workflowExecutionError.dat', 'a+')\r\n\terror_dat.close()\r\n\r\n\t## write tool name to tool error list of current workflow loop\r\n\ttool_error_list = open(path_of_working_directory_rce + '/temp/toolErrorList.log', 'a+')\r\n\ttool_error_list.write('Error occurred in design tool: wing_design' + '\\n')\r\n\ttool_error_list.close()\r\n\r\n${out:current_workflow_name} = current_working_dir\r\n",
"preScript": "",
"setToolDirAsWorkingDir": true,
"toolDescription": "",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment