How bhawna2123/workday-payroll-simulation works
Project type and purpose
• This is a Java-based integration simulation project that bridges Workday-style outbound XML data to a third-party payroll system.
• It consists of two main parts:
• A command-line “Workday to Payroll” integration pipeline (workday-payroll-integration/)
• A mock Spring Boot REST API server (payroll-api-server/) that receives transformed payroll XML
File structure
• Top-level modules:
• workday-payroll-integration/: holds input data, XSLT, output logs, and all Java source for the integration client
• payroll-api-server/: a standard Maven/Spring Boot project with controllers and application config
• Within workday-payroll-integration/:
• data/employees.xml – sample Workday outbound data
• xslt/transform.xslt – XSLT stylesheet that maps Workday XML → payroll format
• src/*.java – Java classes:
– Main.java (orchestrates the flow)
– EmployeeDataService.java (loads/parses XML)
– XSLTTransformer.java (applies XSLT)
– RestClient.java (HTTP POST client)
– LoggerUtil.java (logging & error capture)
• output/ – directory for transformed XML and error.log
• Within payroll-api-server/:
• src/main/java/com/example/payroll/PayrollApplication.java – Spring Boot entrypoint
• PayrollController.java – REST endpoint (/api/payroll/upload)
• application.properties – server config (port, logging, etc.)
README for additional insights
• Integration flow:
1. Read employees.xml
2. Transform via XSLT
3. POST transformed XML to mock API
4. Log results/errors
• Technologies: Java 8+, XSLT, Spring Boot REST, Maven
• Usage: run the Spring Boot server, then compile/run the integration client
Diagramming recommendations
• Use clear labels for every component (e.g., “XSLTTransformer”, “PayrollController”)