Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeInvoiceBufferWorkflow

Namespace OfficeIMO.Workflows
Assembly OfficeIMO.Workflows
Modifiers static

Memory-only invoice workflows. Hosts own input acquisition and safe publication; format owners own semantics and rendering.

Inheritance

  • Object
  • OfficeInvoiceBufferWorkflow

Methods

public static Task<OfficeInvoiceWorkflowResult> RunAsync(OfficeInvoiceWorkflowRequest request, InvoiceValidator validator = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeInvoiceWorkflowResult>

Runs captured input through shared owners. A requested standards stage fails closed when its validator is unavailable. Cancellation returns no artifact.

Parameters

request OfficeIMO.Workflows.OfficeInvoiceWorkflowRequest requiredposition: 0
validator OfficeIMO.Invoicing.Validation.InvoiceValidator = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public static async Task<IReadOnlyList<OfficeInvoiceWorkflowResult>> RunBatchAsync(IEnumerable<OfficeInvoiceWorkflowRequest> requests, OfficeInvoiceWorkflowBatchOptions options = null, InvoiceValidator validator = null, CancellationToken cancellationToken = default) #
Returns: Task<IReadOnlyList<OfficeInvoiceWorkflowResult>>

Preflights bounded immutable requests, then processes in input order. No item is executed when preflight exceeds a batch limit.

Parameters

requests System.Collections.Generic.IEnumerable{OfficeIMO.Workflows.OfficeInvoiceWorkflowRequest} requiredposition: 0
options OfficeIMO.Workflows.OfficeInvoiceWorkflowBatchOptions = null optionalposition: 1
validator OfficeIMO.Invoicing.Validation.InvoiceValidator = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3