Skip to content

API Reference parrot_tools.interfaces.workday.handlers.base

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.workday.handlers.base

View source

Class WorkdayTypeBase

Base class for Workday operation types.

Parameter Type Default Description
service Any
max_retries int 3
retry_delay float 0.5

Attributes:

Attribute Type Description
request_payload Dict[str, Any]

Method WorkdayTypeBase.execute

Execute the specific operation logic. Must be implemented by subclasses.

execute(**kwargs) -> Any

Parameter Type Default Description
**kwargs {}

Returns: Any

Class WorkdayWriteTypeBase

Single-call (non-paginated) write base for Workday write operations.

Reuses WorkdayTypeBase.__init__(service, max_retries, retry_delay) and the bounded retry idiom from _paginate_soap_operation, but issues EXACTLY ONE self.service.call_operation(operation=...) call and parses an acknowledgment instead of paging over results.

The execute(**kwargs) template drives the retry loop and delegates to build_request / call_operation / parse_ack.

Method WorkdayWriteTypeBase.build_request

Build the SOAP request body from validated models.

Subclasses MUST override this.

build_request(**kwargs) -> Dict[str, Any]

Parameter Type Default Description
**kwargs {} Operation-specific payload arguments.

Returns: Dict[str, Any] — dict to be unpacked as kwargs for call_operation.

Method WorkdayWriteTypeBase.parse_ack

Parse the raw Zeep acknowledgment into a per-row status DataFrame.

Subclasses MUST override this.

parse_ack(raw: Any) -> Any

Parameter Type Default Description
raw Any Raw return value from self.service.call_operation.

Returns: Any — A pandas.DataFrame with columns submitted, event_id, error (one row per input event).

Method WorkdayWriteTypeBase.execute

Issue exactly one SOAP write call with retry, then parse the ack.

The retry loop mirrors _paginate_soap_operation (base.py:99-114): transient exceptions are retried up to self.max_retries; the last attempt re-raises on failure. No pagination loop ever runs.

execute(**kwargs) -> Any

Parameter Type Default Description
**kwargs {} Forwarded to build_request(**kwargs).

Returns: Any — A pandas.DataFrame (per-row status) from parse_ack.

Raises:

  • Exception — If all max_retries attempts fail.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally