Subworkflow - Look Up Active Loans

Looks up the current status of a loan in the item's owning Alma Institution Zone and returns the updated loan_status field to the calling workflow.

At a glance


Why this exists

Many workflows need to determine whether a loan is still active before taking additional action. Rather than duplicating the same Alma API call across multiple workflows, this subworkflow provides a single reusable component that retrieves the most current loan status directly from the owning institution's Alma environment.

This simplifies workflow maintenance while ensuring all dependent workflows use the same logic to verify loan status.


What it does


Where it runs


How it works

Logic overview
  1. The subworkflow is called by another workflow.
  2. The Alma Network node routes the API request to the Institution Zone that owns the item.
  3. The workflow retrieves the loan using the patron identifier and loan ID.
  4. The API node is configured to Always Output Data and Continue on Error, allowing the workflow to continue even if the loan cannot be found.
  5. The returned loan_status value replaces the existing field in the input data.
  6. All remaining input fields pass through unchanged to the calling workflow.
If results exist
If no results

Artifacts produced: None. This workflow returns updated data to the calling workflow and does not generate reports, files, or emails.


Revision #2
Created 8 July 2026 14:14:58 by Jackie Saavedra
Updated 8 July 2026 14:48:04 by Jackie Saavedra