Synthesize a new step to compute a static value for each dynamic input, something like _calc_{inputname}: _calc_Outfile with a single output named result
Rewrite all references to the original dynamic input to this static value: basically connecting _calc_OutFile/result instead of Outfile in all of the WorkflowStep.in sections
Example: https://github.com/common-workflow-lab/wdl-cwl-translator/blob/1fff15bd7b4e7f0bff540b01276881c1b00d1f39/wdl2cwl/tests/wdl_files/blast.wdl#L12
_calc_{inputname}
:_calc_Outfile
with a single output namedresult
_calc_OutFile/result
instead ofOutfile
in all of theWorkflowStep.in
sections