Search Results for

    Show / Hide Table of Contents

    Interface IBusinessProcessClient

    Namespace: System.Dynamic.ExpandoObject
    Syntax
    [GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
    public interface IBusinessProcessClient

    Methods

    CancelAsync(string, CancellationToken)

    Cancel business process

    Declaration
    Task CancelAsync(string id, CancellationToken cancellationToken = default)
    Parameters
    string id

    The business process id.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task

    Remarks

    Only available if the business process indicates support for cancellation in SupportsCancellation.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    ChangeStateAsync(string, BusinessProcessStateChangeRequest, CancellationToken)

    Change business process state

    Declaration
    Task<BusinessProcess> ChangeStateAsync(string id, BusinessProcessStateChangeRequest request, CancellationToken cancellationToken = default)
    Parameters
    string id

    The business process id.

    BusinessProcessStateChangeRequest request

    The business process state change request.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcess>

    BusinessProcess

    Remarks

    Only available for business processes created through Create. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    CreateAsync(BusinessProcessCreateRequest, CancellationToken)

    Create business process

    Declaration
    Task<BusinessProcess> CreateAsync(BusinessProcessCreateRequest request, CancellationToken cancellationToken = default)
    Parameters
    BusinessProcessCreateRequest request

    The business process create request.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcess>

    BusinessProcess

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    GetAsync(string, CancellationToken)

    Get business process

    Declaration
    Task<BusinessProcess> GetAsync(string id, CancellationToken cancellationToken = default)
    Parameters
    string id

    The business process id.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcess>

    BusinessProcess

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    GetDetailsAsync(string, CancellationToken)

    Get details

    Declaration
    [Obsolete]
    Task<BusinessProcessDetails> GetDetailsAsync(string id, CancellationToken cancellationToken = default)
    Parameters
    string id

    The business process id.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessDetails>

    BusinessProcessDetails

    Remarks

    Gets details of the given business process.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    GetFailedItemsAsync(string, int, string, CancellationToken)

    Gets a page of failed items of a batch based business process.
    Use the page token to fetch next page.

    Declaration
    Task<BusinessProcessBatch> GetFailedItemsAsync(string id, int limit, string pageToken = null, CancellationToken cancellationToken = default)
    Parameters
    string id

    Business process id.

    int limit

    Number of items to fetch.

    string pageToken

    PageToken for paging.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessBatch>

    BusinessProcessBatch

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    GetSuccessfulItemsAsync(string, int, string, CancellationToken)

    Gets a page of successful items of a batch based business process.
    Use the page token to fetch next page.

    Declaration
    Task<BusinessProcessBatch> GetSuccessfulItemsAsync(string id, int limit, string pageToken = null, CancellationToken cancellationToken = default)
    Parameters
    string id

    Business process id.

    int limit

    Number of items to fetch.

    string pageToken

    PageToken for paging.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessBatch>

    BusinessProcessBatch

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    GetSummaryAsync(string, CancellationToken)

    Returns a summary of the business process.
    Depending on the type of the business process, this can be not available at all or contain just a minimal set of information.
    If business process produces a batch based response, page over successful and failed items using respective endpoints.

    Declaration
    Task<BusinessProcessSummaryBase> GetSummaryAsync(string id, CancellationToken cancellationToken = default)
    Parameters
    string id

    Business process id.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessSummaryBase>

    BusinessProcessSummaryBase

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    SearchAsync(BusinessProcessSearchRequest, CancellationToken)

    Search

    Declaration
    Task<BusinessProcessSearchResult> SearchAsync(BusinessProcessSearchRequest request, CancellationToken cancellationToken = default)
    Parameters
    BusinessProcessSearchRequest request

    The business process request.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessSearchResult>

    BusinessProcessSearchResult

    Remarks

    Search for business processes.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    UpdateNotificationAsync(string, BusinessProcessNotificationUpdateRequest, CancellationToken)

    Update business process notification

    Declaration
    Task UpdateNotificationAsync(string id, BusinessProcessNotificationUpdateRequest request, CancellationToken cancellationToken = default)
    Parameters
    string id

    The business process id.

    BusinessProcessNotificationUpdateRequest request

    The business process notification update request.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task

    Remarks

    Only available for business processes created through Create.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkValidationException

    Validation exception

    PictureparkForbiddenException

    Forbidden

    PictureparkNotFoundException

    Entity not found

    PictureparkConflictException

    Version conflict

    PictureparkTooManyRequestsException

    Too many requests

    PictureparkException

    Internal server error

    WaitForCompletionAsync(string, TimeSpan?, bool, CancellationToken)

    Waits until the business process is completed or the timeout is reached.

    Declaration
    Task<BusinessProcessWaitForLifeCycleResult> WaitForCompletionAsync(string processId, TimeSpan? timeout = null, bool waitForContinuationCompletion = true, CancellationToken cancellationToken = default)
    Parameters
    string processId

    The process ID.

    TimeSpan? timeout

    The timeout in ms to wait for completion.

    bool waitForContinuationCompletion

    Waits for the completion of the continuation business process (if existing, recursively). Default to true.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessWaitForLifeCycleResult>

    The wait result.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkException

    Internal server error

    WaitForLifeCyclesAsync(string, IEnumerable<BusinessProcessLifeCycle>, TimeSpan?, CancellationToken)

    Waits until the business process transitioned into one of the given lifecycles or the timeout is reached.

    Declaration
    Task<BusinessProcessWaitForLifeCycleResult> WaitForLifeCyclesAsync(string processId, IEnumerable<BusinessProcessLifeCycle> lifeCycleIds, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
    Parameters
    string processId

    The process ID.

    IEnumerable<BusinessProcessLifeCycle> lifeCycleIds

    The business process lifecycle IDs to wait for.

    TimeSpan? timeout

    The timeout in ms to wait for completion.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessWaitForLifeCycleResult>

    The wait result.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkException

    Internal server error

    WaitForStatesAsync(string, IEnumerable<string>, TimeSpan?, CancellationToken)

    Waits until the business process transitioned into one of the given states or the timeout is reached.

    Declaration
    Task<BusinessProcessWaitForStateResult> WaitForStatesAsync(string processId, IEnumerable<string> states, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
    Parameters
    string processId

    The process ID.

    IEnumerable<string> states

    The states to wait for.

    TimeSpan? timeout

    The timeout in ms to wait for completion.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Task<BusinessProcessWaitForStateResult>

    The wait result.

    Exceptions
    ApiException

    A server side error occurred.

    PictureparkException

    Internal server error

    Back to top Generated by DocFX