Skip to content

Workday provides innovative enterprise cloud applications for finance and HR, incorporating AI and machine learning to drive business success globally. Workday's Java SDK for PerformanceEnablement API generated by Konfig (https://konfigthis.com/).

Notifications You must be signed in to change notification settings

konfig-sdks/workday-performance-enablement-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visit Workday

The Performance Management service enables applications to access and create feedback about workers in the system.

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-performance-enablement-java-sdk</artifactId>
  <version>v5</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your build.gradle:

// build.gradle
repositories {
  mavenCentral()
}

dependencies {
   implementation "com.konfigthis:workday-performance-enablement-java-sdk:v5"
}

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-performance-enablement-java-sdk-v5.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.WorkdayPerformanceEnablement;
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>/performanceEnablement/v5";
    WorkdayPerformanceEnablement client = new WorkdayPerformanceEnablement(configuration);
    Long limit = 56L; // The maximum number of objects in a single response. The default and maximum is 1000.
    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> workers = Arrays.asList();
    try {
      MULTIPLEINSTANCEMODELREFERENCE result = client
              .promptValues
              .getInstances()
              .limit(limit)
              .offset(offset)
              .workers(workers)
              .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#getInstances");
      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
              .getInstances()
              .limit(limit)
              .offset(offset)
              .workers(workers)
              .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#getInstances");
      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>/performanceEnablement/v5

Class Method HTTP request Description
PromptValuesApi getInstances GET /values/workersToNotify/workersToNotify
PromptValuesApi getInstances_0 GET /values/feedbackTemplate/feedbackTemplate
PromptValuesApi getInstances_1 GET /values/feedbackOnWorker/feedbackOnWorker
PromptValuesApi getInstances_2 GET /values/feedbackResponder/feedbackResponder
PromptValuesApi getInstances_3 GET /values/relatesTo/relatesTo
FeedbackBadgesApi getById GET /feedbackBadges/{ID} Retrieves a Feedback Badge with the specified ID.
FeedbackBadgesApi getCollection GET /feedbackBadges Retrieves a collection of active Feedback Badges.
GiveRequestedFeedbackEventsApi getCollectionFeedbackEvents GET /giveRequestedFeedbackEvents Retrieves a collection of feedback given events about the user that responded to the feedback request.
GiveRequestedFeedbackEventsApi getInstance GET /giveRequestedFeedbackEvents/{ID} Retrieves a single requested feedback given event instance with the specified ID of the user that responded to the feedback request.
GiveRequestedFeedbackEventsApi updateEvent PATCH /giveRequestedFeedbackEvents/{ID} Updates the Give Requested Feedback Event that matches the WID in the url, and the current authenticated user is a responder for the event.
WorkersApi createFeedbackEvent POST /workers/{ID}/anytimeFeedbackEvents Creates a single feedback given event instance about the specified worker.
WorkersApi getCollectionStaffing GET /workers Retrieves a collection of workers and current staffing information.
WorkersApi getFeedbackEvent GET /workers/{ID}/anytimeFeedbackEvents/{subresourceID} Retrieves a feedback given event instance with the specified ID.
WorkersApi getFeedbackEvents GET /workers/{ID}/anytimeFeedbackEvents Retrieves a collection of feedback given events about the specified worker.
WorkersApi getGoals GET /workers/{ID}/goals Retrieves a collection of goals for a specific worker.
WorkersApi getRequestedEvent GET /workers/{ID}/requestedFeedbackOnWorkerEvents/{subresourceID} Retrieves a single requested feedback event instance for the specified worker.
WorkersApi getRequestedFeedbackEvents GET /workers/{ID}/requestedFeedbackOnWorkerEvents Retrieves a collection of requested feedback events for the specified worker.
WorkersApi getSelfRequestedFeedback GET /workers/{ID}/requestedFeedbackOnSelfEvents Retrieves a collection of self-requested feedback events for the specified worker.
WorkersApi getSelfRequestedFeedbackEvent GET /workers/{ID}/requestedFeedbackOnSelfEvents/{subresourceID} Retrieves a single self-requested feedback event instance for the specified worker.
WorkersApi getSingleGoal GET /workers/{ID}/goals/{subresourceID} Retrieves a single goal instance for a specific worker.
WorkersApi getStaffingInformation GET /workers/{ID} Retrieves a collection of workers and current staffing information.
WorkersApi requestFeedbackOnSelfEvents POST /workers/{ID}/requestedFeedbackOnSelfEvents
WorkersApi requestFeedbackOnWorkerEvents POST /workers/{ID}/requestedFeedbackOnWorkerEvents Not applicable.

Documentation for Models

Author

This Java package is automatically generated by Konfig

About

Workday provides innovative enterprise cloud applications for finance and HR, incorporating AI and machine learning to drive business success globally. Workday's Java SDK for PerformanceEnablement API generated by Konfig (https://konfigthis.com/).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published