-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major
-
Affects Version/s: master, 5.0.0
-
Component/s: Workflow API Libraries
-
None
Currently, a user does not have a way to specify properties for sub workflow jobs. Hence users use the add_args function after adding the planner_args
j1 = SubWorkflow("subwf1.yml", _id="subwf1")\
.add_planner_args(verbose=3)\
.add_inputs(input_file, output_map_sw1)\
.add_outputs(k1_out)
- I need to add the sub-workflow output map to the planning job.
j1.add_args('-Dpegasus.dir.storage.mapper.replica.file=output_sw1.map')
The problem is that order is important, since in java any property has to appear first on the command line. So when the yaml for the job is created, we have to ensure all properties are specified first via the -D notation before specifying any command line arguments