Product-Documentation

Functionality

Workflow

Document Creation

A document is created based on a Ziflow-configured product in Storefront.

User Checkout

When the user proceeds to checkout, the system verifies their “UserProfileEmailAddress” field. If empty, the workflow is aborted, and an error message is displayed.

Basket Review

Single Ziflow Item Checkout

If there is only one Ziflow item in the basket, and the user’s email address is set, the checkout process proceeds.

Order Placement

When an order is placed in Storefront, the integration checks for the existence of any approval workflows for a specific reviewer (a dedicated Storefront user account used solely for the Ziflow integration).

Proof Preparation

If an approval workflow is found, the integration prepares the rendered proof for submission to Ziflow by generating the proof for the document and copying the proof to the output folder. If the Storefront proof is not found, the Ziflow workflow is aborted.

Ziflow Workflow Creation

A product metadata field specifies the Ziflow workflow template to use. The integration creates a Ziflow workflow for the selected template using the Ziflow API. The Storefront document’s rendered proof and internal document ID are sent to Ziflow.

Document Approval Process

The Storefront document remains in the approvals queue until the Ziflow approval process is completed.

Ziflow Approval Result

When the Ziflow approval is processed, the integration receives the approval result through the Ziflow API callback. It searches for the corresponding Storefront document based on the returned pass-through value and evaluates the document’s approval status in Ziflow.

Pending Approval Status

The Storefront document stays pending approval until all decision maker approvers respond in Ziflow. This ensures that comments from all approvers can be returned to the user.

Document Status Update

Once all decision maker approvers finish reviewing the document in Ziflow, the integration updates the document status in Storefront based on the approval result.

Approval and Rejection Actions

User Site

The overall progress of Ziflow items can be reviewed on the Orders page.

When debug logging is enabled, additional columns are rendered on the Orders page with Storefront and Ziflow statuses for each document.

The Storefront/Ziflow actions are accessed using the “Review” link to the Order Details page.

Depending on the Storefront and Ziflow statuses, there are up to three actions availabe on top of the page: