Skip to content

Commit

Permalink
Added warning on mismatched fillFrom hints from non synthetic outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfernandez committed May 30, 2024
1 parent 21706ac commit a85b02c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions wfexs_backend/utils/rocrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2020,13 +2020,17 @@ def generateWorkflowMetaFromJSONLD(
if not output_decl.get("syntheticOutput", False):
# Additional check
fill_from = output_decl.get("fillFrom")
if fill_from == output_name:
# Now, inject an input
new_params[output_name] = {
"c-l-a-s-s": output_decl["c-l-a-s-s"],
"autoFill": True,
"autoPrefix": True,
}
if fill_from != output_name:
self.logger.warning(
f"fillFrom property differs from what it is expected: {fill_from} vs {output_name} . Fixing"
)
output_decl["fillFrom"] = output_name
# Now, inject an input
new_params[output_name] = {
"c-l-a-s-s": output_decl["c-l-a-s-s"],
"autoFill": True,
"autoPrefix": True,
}
params = new_params

return (
Expand Down

0 comments on commit a85b02c

Please sign in to comment.