Skip to main content

jEAP Process Context Service

Source on GitHub

The jEAP Process Context Service (PCS) provides a process context for cross-service processes in an event driven architecture, without having to control the execution of the processes with a central process engine (choreography over orchestration). It consumes the domain events and commands of the participating services, tracks the state of the process instances and their tasks, and visualizes them in a UI — so that a process can be followed and analysed, and events can be published in reaction to changed process states or milestones.

This repository is published as a library: every business application creates and deploys its own PCS instance depending on it, containing the process definitions specific to that application.

Documentation​

Getting started​

Architecture​

  • Architecture — goals, context, building blocks and domain model
  • Domain model — aggregate relationships and plugin context.
  • Runtime behavior — message flow, processing stages, correlation and error handling
  • Design decisions — architecture, persistence and concurrency choices

Configuration​

Service-specific topics​

Operations​

  • Operations — scaling, housekeeping, metrics and error handling
  • Maintenance jobs — relation reevaluation, process-data backfill and relation republication
  • Template migration — what happens when a process template changes

Development​

Prerequisites​

Before you begin, ensure you have the following installed:

  • Java 25 or higher
  • npm (Node Package Manager) 22 or higher

Note: Use the provided Maven Wrapper (mvnw / mvnw.cmd) to build and run the project - no separate Maven installation required.

Local development​

Normally you will not use this project directly, but instead set up your own process context service depending on this common library. If you want to test this library locally, you can use the example project jme-process-context-example, which is available in a separate repository. Check the documentation for details.

Build the library​

To build the library, run the following command in the root of the repository:

# Linux / macOS
./mvnw clean install
# Windows
mvnw.cmd clean install

The UI will also be built as part of this command, so there is no need to build it separately if you just want to use the library.

Build the UI​

The UI can be built independently of the Spring Boot application, so it can be started separately. This is especially useful for development, as it allows to start the UI with hot reload and without the need to restart the Spring Boot application after every change. To build the UI, run the following command in the root of the repository:

cd jme-process-context-ui
# Force is currently needed to resolve some dependency conflicts.
# This is a technical debt that will be resolved in the future by aligning the dependencies of the UI.
npm install --force
npm run build

Start the UI locally​

To start the UI locally, run the following command in the root of the repository:

cd jme-process-context-ui
npm run start

or via Angular CLI:

cd jme-process-context-ui
npx ng serve --open

These will start the UI on http://localhost:4200/. The UI will automatically reload after every change, so you can see the changes immediately in the browser. To run an example backend locally, you can use the example project jme-process-context-example or an own implementation of the process context service. The UI will also automatically connect to the process context service running on http://localhost:8080/.

Instance configuration​

The properties of a PCS instance are documented in Configuration, including the PAMS and ePortal settings of the UI header.

Local Cypress Component Tests​

Testing in Browser with UI:​

cd jeap-process-context-ui
npx cypress open --port 7000

Testing in Console:​

cd jeap-process-context-ui
npm run cypress:run