Skip to content

Example code for creating Functions in Pega Launchpad applications

License

Notifications You must be signed in to change notification settings

pegasystems/pega-launchpad-functions

Repository files navigation

Overview

Pega Launchpad is the platform for SaaS development, hosting and operations that empowers you to get workflow-centric B2B applications to market and revenue quickly, freeing up your resources to focus on innovation, customer success and business growth.

This repository contains some sample code and configuration to learn how to create your own functions in Pega Launchpad. Use as examples or starter code for your own functions as needed.

Table of Contents

References

Java SDK

This repository also includes a java software development kit (SDK) to assist in the development of Launchpad Functions using the following runtime languages:

Example modules

Name Description Latest jar/zip file
aws AWS helpers (s3, comprehend) jar
base64 Encoding/decoding base64 strings jar
docusign Docusign e-signature example jar
email Email utilities jar
geocoding Geocoding utilities jar
net REST and HTTP utilities jar
nodejs Nodejs function example zip
parser CSV and JSON parsing jar
pdf PDF form filler jar
python Python function example zip
text String utilities jar

Example modules: Obtaining a JAR or ZIP to import into a Function rule

You can download the latest JAR releases for each module from the project release page, or you can generate the necessary JAR file (including dependencies) for uploading into a Pega Launchpad Function rule by running this command in your local workspace:

gradlew build

  • For java examples, this will create/update the module-vX.Y.Z-SNAPSHOT.jar files in the various example modules, under their build/libs directory.
  • For python examples, this will create/update the nodejs-vX.Y.Z-SNAPSHOT.zip file in the examples/nodejs/build/distributions
  • For nodejs examples, this will create/update the python-vX.Y.Z-SNAPSHOT.zip file in the example/python/build/distributions directory

Setting up IntellJ workspace for this project

  1. Clone this git project to your local filesystems: git clone https://github.com/pegasystems/pega-launchpad-functions.git
  2. In IntelliJ, open this project from your local folder
  3. Configure Settings -> Build, Execution, Deployment -> Build Tools -> Gradle to use a jdk 11, like semeru-11-*. Add/download from there if needed
  4. Configure Project Settings -> Project -> to use semeru-11-*, language level 11

To run gradle build scripts from command line, make sure you are using at least JDK 11, but nothing higher than that. Check your path and JAVA_HOME settings, download new jdk if necessary.