code: def used_artefacts(self,
                         job_order,            # type: Dict
                         process_run_id,       # type: str
                         name=None             # type: str
                        ):  # type: (...) -> None
          
          # FIXME: Use workflow name in packed.cwl, "main" is wrong for nested workflows
          base = "main"
          if name is not None:
              base += "/" + name
          for key, value in job_order.items():
              prov_role = self.wf_ns["%s/%s" % (base, key)]
              entity = self.declare_artefact(value)
              self.document.used(
                  process_run_id, entity, datetime.datetime.now(), None,
                  {"prov:role": prov_role})
docs: Add used() for each data artefact.