- arguments = self.get("arguments") or ""
- for arg in map(str.strip, arguments.split(";")):
- self.simulation.invoke(self.simulation.dce_application_helper_uuid,
- "AddArgument", arg)
-
- apps_uuid = self.simulation.invoke(self.simulation.dce_application_helper_uuid,
+ arguments = self.get("arguments")
+ if arguments:
+ for arg in map(str.strip, arguments.split(";")):
+ self.simulation.invoke(
+ self.dce_application_helper_uuid,
+ "AddArgument", arg)
+
+ environment = self.get("environment")
+ if environment:
+ for env in map(str.strip, environment.split(";")):
+ key, val = env.split("=")
+ self.simulation.invoke(
+ self.dce_application_helper_uuid,
+ "AddEnvironment", key, val)
+
+ apps_uuid = self.simulation.invoke(
+ self.dce_application_helper_uuid,