Skip to content

Parsers

flowtask.components.Workday.parsers

parse_benefits_and_roles

parse_benefits_and_roles(worker_data)

Parse benefit enrollments, roles, and worker documents.

parse_business_site

parse_business_site(worker_data)

Parse business site summary data.

parse_compensation_data

parse_compensation_data(worker_data)

Parse the compensation details of the worker.

Extracts
  • wage (float)
  • compensation_effective_date (str)
  • compensation_guidelines (package / grade / profile IDs)
  • salary_and_hourly (list of elements)
  • compensation_summary (nested summary)
  • reason_references (mapping of reason type → ID)

parse_contact_data

parse_contact_data(worker_data)

Parse the contact information (email, address, phone) of the worker.

parse_employment_data

parse_employment_data(worker_data)

Parse employment-related details (position, hours, job profile).

parse_identification_data

parse_identification_data(worker_data)

Parse identification details (national ID, license, custom IDs).

parse_location_data

parse_location_data(location_data)

Parse the main location data from Workday response.

parse_management_chain_data

parse_management_chain_data(worker_data)

Parse management chain data from Worker_Management_Chain_Data.

parse_organization_data

parse_organization_data(org_data)

Parse organization data from Workday SOAP response.

:param org_data: Raw organization data from Workday :return: Parsed Organization model

parse_payroll_and_tax_data

parse_payroll_and_tax_data(worker_data)

Parse payroll and tax related data from Position_Data.

parse_personal_data

parse_personal_data(worker_data)

Parse the personal information of the worker.

parse_position_management_chain_data

parse_position_management_chain_data(worker_data)

Parse management chain data from Position_Management_Chains_Data. This is different from Worker_Management_Chain_Data and contains the actual management chain.

parse_time_block_data

parse_time_block_data(time_block_data)

Parse the main time block data from Workday response.

parse_time_request_data

parse_time_request_data(time_request_data)

Parse time request data from the SOAP response.

parse_worker_organization_data

parse_worker_organization_data(worker_data)

Parse worker organization information from worker data

parse_worker_status

parse_worker_status(worker_data)

Parse worker status details (active, hire/termination dates, eligibility), asegurando no romper si algún _Reference es None.

location_hierarchy_assignments_parsers

Parsers for Location Hierarchy Organization Assignments data.

parse_location_hierarchy_assignment

parse_location_hierarchy_assignment(assignment_data)

Parse location hierarchy organization assignment data.

Parameters:

Name Type Description Default
assignment_data Dict[str, Any]

Raw assignment data from the API (already Location_Hierarchy_Organization_Assignments_Data)

required

Returns:

Type Description
LocationHierarchyAssignment

Parsed LocationHierarchyAssignment object

parse_location_hierarchy_assignments_data

parse_location_hierarchy_assignments_data(raw_data)

Main parser function for location hierarchy assignments data.

Parameters:

Name Type Description Default
raw_data Dict[str, Any]

Raw data from the API response

required

Returns:

Type Description
Dict[str, Any]

Dictionary with parsed assignments and metadata

parse_location_hierarchy_assignments_response

parse_location_hierarchy_assignments_response(response_data)

Parse the complete location hierarchy assignments response.

Parameters:

Name Type Description Default
response_data Dict[str, Any]

Raw response data from the API

required

Returns:

Type Description
List[LocationHierarchyAssignment]

List of parsed LocationHierarchyAssignment objects

parse_location_hierarchy_reference

parse_location_hierarchy_reference(reference_data)

Parse location hierarchy reference data.

Parameters:

Name Type Description Default
reference_data Dict[str, Any]

Raw location hierarchy reference data

required

Returns:

Type Description
LocationHierarchyReference

Parsed LocationHierarchyReference object

parse_organization_assignment

parse_organization_assignment(assignment_data)

Parse organization assignment by type data.

Parameters:

Name Type Description Default
assignment_data Dict[str, Any]

Raw organization assignment data

required

Returns:

Type Description
OrganizationAssignment

Parsed OrganizationAssignment object

parse_organization_reference

parse_organization_reference(org_data)

Parse organization reference data.

Parameters:

Name Type Description Default
org_data Dict[str, Any]

Raw organization reference data

required

Returns:

Type Description
OrganizationReference

Parsed OrganizationReference object

parse_organization_type_reference

parse_organization_type_reference(type_data)

Parse organization type reference data.

Parameters:

Name Type Description Default
type_data Dict[str, Any]

Raw organization type reference data

required

Returns:

Type Description
OrganizationTypeReference

Parsed OrganizationTypeReference object

parse_response_results

parse_response_results(response_data)

Parse response results (pagination info).

Parameters:

Name Type Description Default
response_data Dict[str, Any]

Raw response data from the API

required

Returns:

Type Description
Dict[str, Any]

Dictionary with pagination information

location_parsers

parse_location_data

parse_location_data(location_data)

Parse the main location data from Workday response.

organization_parsers

parse_organization_data

parse_organization_data(org_data)

Parse organization data from Workday SOAP response.

:param org_data: Raw organization data from Workday :return: Parsed Organization model

parse_organizations_response

parse_organizations_response(response_data)

Parse the complete organizations response from Workday.

:param response_data: Raw response data from Workday :return: List of parsed Organization models

time_block_parsers

parse_time_block_data

parse_time_block_data(time_block_data)

Parse the main time block data from Workday response.

time_request_parsers

parse_time_request_data

parse_time_request_data(time_request_data)

Parse time request data from the SOAP response.

worker_parsers

parse_benefits_and_roles

parse_benefits_and_roles(worker_data)

Parse benefit enrollments, roles, and worker documents.

parse_business_site

parse_business_site(worker_data)

Parse business site summary data.

parse_compensation_data

parse_compensation_data(worker_data)

Parse the compensation details of the worker.

Extracts
  • wage (float)
  • compensation_effective_date (str)
  • compensation_guidelines (package / grade / profile IDs)
  • salary_and_hourly (list of elements)
  • compensation_summary (nested summary)
  • reason_references (mapping of reason type → ID)

parse_contact_data

parse_contact_data(worker_data)

Parse the contact information (email, address, phone) of the worker.

parse_employment_data

parse_employment_data(worker_data)

Parse employment-related details (position, hours, job profile).

parse_identification_data

parse_identification_data(worker_data)

Parse identification details (national ID, license, custom IDs).

parse_management_chain_data

parse_management_chain_data(worker_data)

Parse management chain data from Worker_Management_Chain_Data.

parse_payroll_and_tax_data

parse_payroll_and_tax_data(worker_data)

Parse payroll and tax related data from Position_Data.

parse_personal_data

parse_personal_data(worker_data)

Parse the personal information of the worker.

parse_position_management_chain_data

parse_position_management_chain_data(worker_data)

Parse management chain data from Position_Management_Chains_Data. This is different from Worker_Management_Chain_Data and contains the actual management chain.

parse_worker_organization_data

parse_worker_organization_data(worker_data)

Parse worker organization information from worker data

parse_worker_status

parse_worker_status(worker_data)

Parse worker status details (active, hire/termination dates, eligibility), asegurando no romper si algún _Reference es None.