Skip to content

Leading provider of enterprise cloud applications for finance and HR, with AI and ML integrated. Used by over 10,000 organizations globally, including Fortune 500 companies. Workday's Java SDK for Staffing API generated by Konfig (https://konfigthis.com/).

Notifications You must be signed in to change notification settings

konfig-sdks/workday-staffing-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visit Workday

The Staffing REST APIs enable you to get and manage staffing information, such as jobs, job families, job profiles, supervisory organizations, worker check-ins, and job changes. The Staffing service also includes the /workers resource to access staffing information for non-terminated workers.

Related Information:

  • Administrator Guide: Setup Considerations: Job Changes

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven (3.8.3+)/Gradle (7.2+)

If you are adding this library to an Android Application or Library:

  1. Android 8.0+ (API Level 26+)

Installation

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.konfigthis</groupId>
  <artifactId>workday-staffing-java-sdk</artifactId>
  <version>v6</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your build.gradle:

// build.gradle
repositories {
  mavenCentral()
}

dependencies {
   implementation "com.konfigthis:workday-staffing-java-sdk:v6"
}

Android users

Make sure your build.gradle file as a minSdk version of at least 26:

// build.gradle
android {
    defaultConfig {
        minSdk 26
    }
}

Also make sure your library or application has internet permissions in your AndroidManifest.xml:

<!--AndroidManifest.xml-->
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/workday-staffing-java-sdk-v6.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.WorkdayStaffing;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.PromptValuesApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;

public class Example {
  public static void main(String[] args) {
    Configuration configuration = new Configuration();
    configuration.host = "https://<tenantHostname>/staffing/v6";
    WorkdayStaffing client = new WorkdayStaffing(configuration);
    LocalDate effectiveDate = LocalDate.now();
    String job = "job_example";
    Long limit = 56L; // The maximum number of objects in a single response. The default and maximum is 1000.
    String location = "location_example";
    Long offset = 56L; // The zero-based index of the first object in a response collection. The default is 0. Use offset with the limit parameter to control paging of a response collection. Example: If limit is 5 and offset is 9, the response returns a collection of 5 objects starting with the 10th object.
    List<String> proposedManager = Arrays.asList();
    String staffingEvent = "staffingEvent_example";
    String worker = "worker_example";
    try {
      MULTIPLEINSTANCEMODELREFERENCE result = client
              .promptValues
              .availableLocations()
              .effectiveDate(effectiveDate)
              .job(job)
              .limit(limit)
              .location(location)
              .offset(offset)
              .proposedManager(proposedManager)
              .staffingEvent(staffingEvent)
              .worker(worker)
              .execute();
      System.out.println(result);
      System.out.println(result.getTotal());
      System.out.println(result.getData());
    } catch (ApiException e) {
      System.err.println("Exception when calling PromptValuesApi#availableLocations");
      System.err.println("Status code: " + e.getStatusCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }

    // Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
    try {
      ApiResponse<MULTIPLEINSTANCEMODELREFERENCE> response = client
              .promptValues
              .availableLocations()
              .effectiveDate(effectiveDate)
              .job(job)
              .limit(limit)
              .location(location)
              .offset(offset)
              .proposedManager(proposedManager)
              .staffingEvent(staffingEvent)
              .worker(worker)
              .executeWithHttpInfo();
      System.out.println(response.getResponseBody());
      System.out.println(response.getResponseHeaders());
      System.out.println(response.getStatusCode());
      System.out.println(response.getRoundTripTime());
      System.out.println(response.getRequest());
    } catch (ApiException e) {
      System.err.println("Exception when calling PromptValuesApi#availableLocations");
      System.err.println("Status code: " + e.getStatusCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Documentation for API Endpoints

All URIs are relative to https://<tenantHostname>/staffing/v6

Class Method HTTP request Description
PromptValuesApi availableLocations GET /values/jobChangesGroup/locations
PromptValuesApi getAssignmentChangeGroupCostCenters GET /values/organizationAssignmentChangesGroup/costCenters
PromptValuesApi getAssignmentTypes GET /values/jobChangesGroup/assignmentTypes
PromptValuesApi getCompanyInsiderTypes GET /values/jobChangesGroup/companyInsiderTypes
PromptValuesApi getContingentWorkerTypes GET /values/jobChangesGroup/contingentWorkerTypes
PromptValuesApi getCurrencyInstances GET /values/jobChangesGroup/currencies
PromptValuesApi getEmployeeTypes GET /values/jobChangesGroup/employeeTypes
PromptValuesApi getGiftInstances GET /values/organizationAssignmentChangesGroup/gifts
PromptValuesApi getGrants GET /values/organizationAssignmentChangesGroup/grants
PromptValuesApi getInstances GET /values/organizationAssignmentChangesGroup/regions
PromptValuesApi getInstances_0 GET /values/jobChangesGroup/reason
PromptValuesApi getInstances_1 GET /values/organizationAssignmentChangesGroup/customs
PromptValuesApi getInstances_10 GET /values/jobChangesGroup/templates
PromptValuesApi getInstances_11 GET /values/jobChangesGroup/workers
PromptValuesApi getInstances_12 GET /values/jobChangesGroup/jobs
PromptValuesApi getInstances_13 GET /values/organizationAssignmentChangesGroup/workers
PromptValuesApi getInstances_14 GET /values/jobChangesGroup/workStudyAwards
PromptValuesApi getInstances_15 GET /values/organizationAssignmentChangesGroup/positions
PromptValuesApi getInstances_16 GET /values/jobChangesGroup/jobRequisitions
PromptValuesApi getInstances_17 GET /values/jobChangesGroup/jobProfiles
PromptValuesApi getInstances_18 GET /values/organizationAssignmentChangesGroup/companies
PromptValuesApi getInstances_19 GET /values/jobChangesGroup/jobClassifications
PromptValuesApi getInstances_2 GET /values/organizationAssignmentChangesGroup/programs
PromptValuesApi getInstances_3 GET /values/organizationAssignmentChangesGroup/jobs
PromptValuesApi getInstances_4 GET /values/organizationAssignmentChangesGroup/funds
PromptValuesApi getInstances_5 GET /values/jobChangesGroup/workersCompensationCodeOverrides
PromptValuesApi getInstances_6 GET /values/jobChangesGroup/workShifts
PromptValuesApi getInstances_7 GET /values/organizationAssignmentChangesGroup/businessUnits
PromptValuesApi getInstances_8 GET /values/jobChangesGroup/frequencies
PromptValuesApi getInstances_9 GET /values/jobChangesGroup/payRateTypes
PromptValuesApi getOptions GET /values/jobChangesGroup/headcountOptions
PromptValuesApi getProposedPositions GET /values/jobChangesGroup/proposedPosition
PromptValuesApi getSupervisoryOrgValues GET /values/jobChangesGroup/supervisoryOrganization
PromptValuesApi getTimeTypes GET /values/jobChangesGroup/timeTypes
PromptValuesApi getWorkerTypes GET /values/jobChangesGroup/workerTypes
PromptValuesApi getWorkspaceInstances GET /values/jobChangesGroup/workSpaces
JobChangesApi getAdminOptions GET /jobChanges/{ID}/administrative/{subresourceID} Retrieves the administrative options for the specified job change ID.
JobChangesApi getAdministrativeOptions GET /jobChanges/{ID}/administrative Retrieves the administrative options for the specified job change ID.
JobChangesApi getBusinessTitle GET /jobChanges/{ID}/businessTitle/{subresourceID} Retrieves a business title for the specified job change ID.
JobChangesApi getBusinessTitle_0 GET /jobChanges/{ID}/businessTitle Retrieves a business title for the specified job change ID.
JobChangesApi getById GET /jobChanges/{ID} Retrieves a single change job event instance.
JobChangesApi getCommentById GET /jobChanges/{ID}/comment Returns the comment information for the specified job change ID.
JobChangesApi getCommentInfo GET /jobChanges/{ID}/comment/{subresourceID} Returns the comment information for the specified job change ID.
JobChangesApi getContractOptions GET /jobChanges/{ID}/contract Retrieves the contract options for the specified change job ID.
JobChangesApi getContractOptions_0 GET /jobChanges/{ID}/contract/{subresourceID} Retrieves the contract options for the specified change job ID.
JobChangesApi getJobClassification GET /jobChanges/{ID}/jobClassification Retrieves a job classification for the specified job change ID.
JobChangesApi getJobClassification_0 GET /jobChanges/{ID}/jobClassification/{subresourceID} Retrieves a job classification for the specified job change ID.
JobChangesApi getJobProfile GET /jobChanges/{ID}/jobProfile Retrieves a job profile for the specified job change ID.
JobChangesApi getLocationInfo GET /jobChanges/{ID}/location Returns the location information for the specified job change ID.
JobChangesApi getLocationInfo_0 GET /jobChanges/{ID}/location/{subresourceID} Returns the location information for the specified job change ID.
JobChangesApi getMoveTeamOption GET /jobChanges/{ID}/moveTeam/{subresourceID} Retrieves a move team option from the specified job change ID.
JobChangesApi getMoveTeamOption_0 GET /jobChanges/{ID}/moveTeam Retrieves a move team option from the specified job change ID.
JobChangesApi getOpeningOptions GET /jobChanges/{ID}/opening Retrieves the opening options for the specified job change ID.
JobChangesApi getOpeningOptions_0 GET /jobChanges/{ID}/opening/{subresourceID} Retrieves the opening options for the specified job change ID.
JobChangesApi getPositionById GET /jobChanges/{ID}/position Retrieves a position for the specified job change ID.
JobChangesApi getPositionBySubresourceId GET /jobChanges/{ID}/position/{subresourceID} Retrieves a position for the specified job change ID.
JobChangesApi getProfile GET /jobChanges/{ID}/jobProfile/{subresourceID} Retrieves a job profile for the specified job change ID.
JobChangesApi getStartDetails GET /jobChanges/{ID}/startDetails/{subresourceID} Retrieves the start details for the specified job change ID.
JobChangesApi getStartDetails_0 GET /jobChanges/{ID}/startDetails Retrieves the start details for the specified job change ID.
JobChangesApi partialUpdateLocationOptions PATCH /jobChanges/{ID}/location/{subresourceID} Partially updates the location options for the specified change job ID.
JobChangesApi partiallyUpdateContractOptions PATCH /jobChanges/{ID}/contract/{subresourceID} Partially updates the contract options for the specified change job ID.
JobChangesApi submitChangeJob POST /jobChanges/{ID}/submit Submit the specified change job ID.
JobChangesApi updateAdministrativeOptions PATCH /jobChanges/{ID}/administrative/{subresourceID} Partially updates the administrative options for the specified job change ID.
JobChangesApi updateBusinessTitleOptions PATCH /jobChanges/{ID}/businessTitle/{subresourceID} Partially updates the businessTitle options for the specified change job ID.
JobChangesApi updateComment PATCH /jobChanges/{ID}/comment/{subresourceID} Partially updates the comment for the specified change job ID.
JobChangesApi updateJobClassificationOptions PATCH /jobChanges/{ID}/jobClassification/{subresourceID} Partially updates the jobClassification options for the specified change job ID.
JobChangesApi updateJobProfileOptions PATCH /jobChanges/{ID}/jobProfile/{subresourceID} Partially updates the jobProfile options for the specified change job ID.
JobChangesApi updateMoveTeamOptions PATCH /jobChanges/{ID}/moveTeam/{subresourceID} Partially updates the moveTeam options for the specified change job ID.
JobChangesApi updateOpeningOptions PATCH /jobChanges/{ID}/opening/{subresourceID} Partially updates the opening options for the specified change job ID.
JobChangesApi updatePositionOptions PATCH /jobChanges/{ID}/position/{subresourceID} Partially updates the position options for the specified change job ID.
JobChangesApi updateStartDetails PATCH /jobChanges/{ID}/startDetails/{subresourceID} Partially updates the startDetails options for the specified change job ID.
JobFamiliesApi getById GET /jobFamilies/{ID} Retrieves a single job family instance.
JobFamiliesApi list GET /jobFamilies Retrieves a collection of job families.
JobProfilesApi getById GET /jobProfiles/{ID} Retrieves a single job profile instance.
JobProfilesApi listCollection GET /jobProfiles Retrieves a collection of job profiles.
JobsApi getCollection GET /jobs Retrieves a collection of jobs.
JobsApi getJobById GET /jobs/{ID} Retrieves a single job instance.
JobsApi getWorkspace GET /jobs/{ID}/workspace/{subresourceID} Retrieves a single workspace instance.
JobsApi getWorkspaces GET /jobs/{ID}/workspace Retrieves a collection of workspaces for the specified job ID.
OrganizationAssignmentChangesApi createChangeEvent POST /organizationAssignmentChanges Creates a new change organization assignment event for a specific filled or unfilled position.
OrganizationAssignmentChangesApi getBusinessUnit GET /organizationAssignmentChanges/{ID}/businessUnit/{subresourceID} Retrieves a business unit for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getBusinessUnit_0 GET /organizationAssignmentChanges/{ID}/businessUnit Retrieves a business unit for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getComment GET /organizationAssignmentChanges/{ID}/comment Retrieves the comment information for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCommentInfo GET /organizationAssignmentChanges/{ID}/comment/{subresourceID} Retrieves the comment information for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCompany GET /organizationAssignmentChanges/{ID}/company Retrieves a company for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCompanyById GET /organizationAssignmentChanges/{ID}/company/{subresourceID} Retrieves a company for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCostCenter GET /organizationAssignmentChanges/{ID}/costCenter/{subresourceID} Retrieves a cost center for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCostCenter_0 GET /organizationAssignmentChanges/{ID}/costCenter Retrieves a cost center for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCostingOrganizations GET /organizationAssignmentChanges/{ID}/costing/{subresourceID} Retrieves the costing organizations for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCostingOrganizations_0 GET /organizationAssignmentChanges/{ID}/costing Retrieves the costing organizations for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCustomOrganizations GET /organizationAssignmentChanges/{ID}/customOrganizations/{subresourceID} Retrieves the custom organizations for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getCustomOrganizations_0 GET /organizationAssignmentChanges/{ID}/customOrganizations Retrieves the custom organizations for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getInstance GET /organizationAssignmentChanges/{ID} Retrieves a single organization assignment change event instance.
OrganizationAssignmentChangesApi getRegion GET /organizationAssignmentChanges/{ID}/region Retrieves a region for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getRegionById GET /organizationAssignmentChanges/{ID}/region/{subresourceID} Retrieves a region for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getStartDetails GET /organizationAssignmentChanges/{ID}/startDetails/{subresourceID} Retrieves the start details for the specified organization assignment change ID.
OrganizationAssignmentChangesApi getStartDetails_0 GET /organizationAssignmentChanges/{ID}/startDetails Retrieves the start details for the specified organization assignment change ID.
OrganizationAssignmentChangesApi partiallyUpdateCompany PATCH /organizationAssignmentChanges/{ID}/company/{subresourceID} Partially updates the company for the specified organization assignment change ID.
OrganizationAssignmentChangesApi partiallyUpdateCostingOptions PATCH /organizationAssignmentChanges/{ID}/costing/{subresourceID} Partially updates the costing organization options for the specified organization assignment change ID.
OrganizationAssignmentChangesApi partiallyUpdateStartDetails PATCH /organizationAssignmentChanges/{ID}/startDetails/{subresourceID} Partially updates the start details for the specified organization assignment change ID.
OrganizationAssignmentChangesApi submitChangeRequest POST /organizationAssignmentChanges/{ID}/submit Submits the organization changes request for the specified ID, and initiates the Change Organization Assignment business process.
OrganizationAssignmentChangesApi updateBusinessUnit PATCH /organizationAssignmentChanges/{ID}/businessUnit/{subresourceID} Partially updates the business unit for the specified organization assignment change ID.
OrganizationAssignmentChangesApi updateComment PATCH /organizationAssignmentChanges/{ID}/comment/{subresourceID} Partially updates the comment for the organization assignment change ID.
OrganizationAssignmentChangesApi updateCostCenter PATCH /organizationAssignmentChanges/{ID}/costCenter/{subresourceID} Partially updates the cost center for the specified organization assignment change ID.
OrganizationAssignmentChangesApi updateCustomOrganizations PATCH /organizationAssignmentChanges/{ID}/customOrganizations/{subresourceID} Partially updates the custom organizations for the specified organization assignment change ID.
OrganizationAssignmentChangesApi updateRegion PATCH /organizationAssignmentChanges/{ID}/region/{subresourceID} Partially updates the region for the specified organization assignment change ID.
SupervisoryOrganizationsApi getById GET /supervisoryOrganizations Retrieves a supervisory organization for the specified ID.
SupervisoryOrganizationsApi getInstance GET /supervisoryOrganizations/{ID} Retrieves a single supervisory organization instance.
SupervisoryOrganizationsApi getMember GET /supervisoryOrganizations/{ID}/members/{subresourceID} Retrieves a single member instance.
SupervisoryOrganizationsApi getMembers GET /supervisoryOrganizations/{ID}/members Retrieves a collection of members for the specified supervisory organization ID.
SupervisoryOrganizationsApi getOrgChart GET /supervisoryOrganizations/{ID}/orgChart Retrieves information about an organization chart of the specified supervisory organization id.
SupervisoryOrganizationsApi getOrgChart_0 GET /supervisoryOrganizations/{ID}/orgChart/{subresourceID} Retrieves a single organization chart instance.
WorkersApi createCheckIn POST /workers/{ID}/checkIns Creates Check-Ins.
WorkersApi createCheckInTopic POST /workers/{ID}/checkInTopics Creates Check-In topics.
WorkersApi createExternalSkillLevels POST /workers/{ID}/externalSkillLevel Creates external skill levels.
WorkersApi createHomeContactChangeProcess POST /workers/{ID}/homeContactInformationChanges
WorkersApi createSkillItem POST /workers/{ID}/skillItems
WorkersApi createWorkContactInformationChanges POST /workers/{ID}/workContactInformationChanges
WorkersApi deleteCheckIn DELETE /workers/{ID}/checkIns/{subresourceID} Deletes an existing Check-In instance.
WorkersApi deleteCheckInTopic DELETE /workers/{ID}/checkInTopics/{subresourceID} Deletes an existing Check-In topic instance.
WorkersApi getCheckIn GET /workers/{ID}/checkIns/{subresourceID} Retrieves a single Check-In instance.
WorkersApi getCheckInTopic GET /workers/{ID}/checkInTopics/{subresourceID} Retrieves a single Check-In topic instance.
WorkersApi getCheckInTopics GET /workers/{ID}/checkInTopics Retrieves a collection of Check-Ins topics.
WorkersApi getCheckIns GET /workers/{ID}/checkIns Retrieves a collection of Check-Ins.
WorkersApi getCollectionStaffing GET /workers Retrieves a collection of workers and current staffing information.
WorkersApi getExplicitSkills GET /workers/{ID}/explicitSkills Get Explicit Skills for Skill Enabled
WorkersApi getExplicitSkillsForSkillEnabled GET /workers/{ID}/explicitSkills/{subresourceID} Get Explicit Skills for Skill Enabled
WorkersApi getExternalSkillLevel GET /workers/{ID}/externalSkillLevel Retrieves all external skill level information for a worker. You can filter the external skill levels by externalSkillId.
WorkersApi getExternalSkillLevels GET /workers/{ID}/externalSkillLevel/{subresourceID} Retrieves all external skill level information for a worker. You can filter the external skill levels by externalSkillId.
WorkersApi getHomeContactChange GET /workers/{ID}/homeContactInformationChanges/{subresourceID} Retrieves an existing Home Contact Change event for the Person.
WorkersApi getServiceDate GET /workers/{ID}/serviceDates/{subresourceID} Retrieves a single service date information instance.
WorkersApi getServiceDates GET /workers/{ID}/serviceDates Retrieves a collection of service dates for the specified worker id.
WorkersApi getSkillItems GET /workers/{ID}/skillItems
WorkersApi getSkillItemsById GET /workers/{ID}/skillItems/{subresourceID}
WorkersApi getStaffingInformation GET /workers/{ID} Retrieves a collection of workers and current staffing information.
WorkersApi getWorkContactChange GET /workers/{ID}/workContactInformationChanges/{subresourceID} Retrieves an existing Work Contact Change event for the Person.
WorkersApi initiateJobChange POST /workers/{ID}/jobChanges Initiates a job change request for a specific worker
WorkersApi initiateOrganizationAssignmentChange POST /workers/{ID}/organizationAssignmentChanges Initiates an organization assignment change for a specific worker.
WorkersApi partiallyUpdateCheckIn PATCH /workers/{ID}/checkIns/{subresourceID}?type=archive Partially updates an existing Check-In to archived or un-archived.
WorkersApi partiallyUpdateCheckInTopic PATCH /workers/{ID}/checkInTopics/{subresourceID} Partially updates an existing Check-In topic instance.
WorkersApi saveUserSkills POST /workers/{ID}/explicitSkills Save skills a user has
WorkersApi updateCheckIn PATCH /workers/{ID}/checkIns/{subresourceID} Partially updates an existing Check-In instance.
WorkersApi updateCheckInTopicState PATCH /workers/{ID}/checkInTopics/{subresourceID}?type=archive Partially updates an existing Check-In topic to archived or un-archived.
WorkersApi updateExternalSkillLevel PUT /workers/{ID}/externalSkillLevel/{subresourceID} Updates external skill levels.

Documentation for Models

Author

This Java package is automatically generated by Konfig

About

Leading provider of enterprise cloud applications for finance and HR, with AI and ML integrated. Used by over 10,000 organizations globally, including Fortune 500 companies. Workday's Java SDK for Staffing API generated by Konfig (https://konfigthis.com/).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages