Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeInvoiceFileWorkflow

Namespace OfficeIMO.Workflows
Assembly OfficeIMO.Workflows
Modifiers static

Thin local-file adapter over the memory workflow and shared atomic file commit owner.

Inheritance

  • Object
  • OfficeInvoiceFileWorkflow

Methods

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

Reads bounded XML and atomically creates a new output file after successful execution.

Parameters

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

Preflights and captures all bounded inputs before sequential execution. Outputs cannot overwrite existing files, sources or another planned output. Publication is per item, not a batch transaction.

Parameters

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