+ self.simulation.invoke(
+ self.simulation.dce_application_helper_uuid,
+ "AddArgument", arg)
+
+ environment = self.get("environment") or ""
+ for env in map(str.strip, environment.split(";")):
+ key, val = env.split("=")
+ self.simulation.invoke(
+ self.simulation.dce_application_helper_uuid,
+ "AddEnvironment", key, val)
+
+ if self.has_attribute("files"):
+ files = self.get("files") or ""
+ for files in map(str.strip, files.split(";")):
+ remotepath, dcepath = env.split("=")
+ localpath = "${SHARE}/" + os.path.basename(remotepath)
+ self.simulation.invoke(
+ self.simulation.dce_application_helper_uuid,
+ "AddFile", localpath, dcepath)
+
+ if self.has_attribute("stdinFile"):
+ stdinfile = self.get("stdinFile")
+ if stdinfile:
+ if stdinfile != "":
+ stdinfile = "${SHARE}/" + os.path.basename(stdinfile)
+
+ self.simulation.invoke(
+ self.simulation.dce_application_helper_uuid,
+ "SetStdinFile", stdinfile)
+
+ apps_uuid = self.simulation.invoke(
+ self.simulation.dce_application_helper_uuid,