Parsers¶
flowtask.components.Workday.parsers
¶
parse_benefits_and_roles
¶
Parse benefit enrollments, roles, and worker documents.
parse_compensation_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 the contact information (email, address, phone) of the worker.
parse_employment_data
¶
Parse employment-related details (position, hours, job profile).
parse_identification_data
¶
Parse identification details (national ID, license, custom IDs).
parse_location_data
¶
Parse the main location data from Workday response.
parse_management_chain_data
¶
Parse management chain data from Worker_Management_Chain_Data.
parse_organization_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 related data from Position_Data.
parse_personal_data
¶
Parse the personal information of the worker.
parse_position_management_chain_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 the main time block data from Workday response.
parse_time_request_data
¶
Parse time request data from the SOAP response.
parse_worker_organization_data
¶
Parse worker organization information from worker data
parse_worker_status
¶
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 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
¶
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 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 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 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 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 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 (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 |
organization_parsers
¶
parse_organization_data
¶
Parse organization data from Workday SOAP response.
:param org_data: Raw organization data from Workday :return: Parsed Organization model
parse_organizations_response
¶
Parse the complete organizations response from Workday.
:param response_data: Raw response data from Workday :return: List of parsed Organization models
worker_parsers
¶
parse_benefits_and_roles
¶
Parse benefit enrollments, roles, and worker documents.
parse_compensation_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 the contact information (email, address, phone) of the worker.
parse_employment_data
¶
Parse employment-related details (position, hours, job profile).
parse_identification_data
¶
Parse identification details (national ID, license, custom IDs).
parse_management_chain_data
¶
Parse management chain data from Worker_Management_Chain_Data.
parse_payroll_and_tax_data
¶
Parse payroll and tax related data from Position_Data.
parse_personal_data
¶
Parse the personal information of the worker.
parse_position_management_chain_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 information from worker data
parse_worker_status
¶
Parse worker status details (active, hire/termination dates, eligibility), asegurando no romper si algún _Reference es None.