Process Archive Integration
The OpenSearch example can index decrees and decree documents produced by the JME Process Archive example. This is an optional cross-application demonstration: the OpenSearch example builds, tests and runs its transit flow without a Process Archive deployment.
Flow
- Process Archive stores a decree or decree document and publishes
SharedArchivedArtifactVersionCreatedEvent. - The OpenSearch index writer consumes that event from an environment-configured topic.
JmeDecreeConditionandJmeDecreeDocumentConditionselect the operation matching the event's archived data schema.- The corresponding reference provider creates an OpenSearch origin reference from the storage bucket, object key and object version.
- The index writer obtains an OAuth2 client-credentials token and retrieves the SearchItem from the Process Archive SearchItems API.
- The index writer upserts the SearchItem as
JmeDecreeorJmeDecreeDocument. - The inspection service exposes the indexed data through
/api/decreesand/api/decreedocuments.
Portable Implementation
The OSS modules own all application code and public dependencies:
| Module | Portable responsibility |
|---|---|
jme-opensearch-index-writer-service | Archived-artifact event type dependency, decree index types, conditions and reference providers |
jme-opensearch-inspection-service | Decree index types and authorization-aware inspection controllers |
The event and index-type artifacts are available from Maven Central. No Nivel or AWS dependency is required to compile the integration.
Deployment Configuration Contract
An environment that enables the integration supplies:
- A
SharedArchivedArtifactVersionCreatedEvententry inopensearch/messages.json. - The event topic name.
- Separate operations for
JmeDecreeandJmeDecreeDocument. - The Process Archive SearchItems API base URI, normally exposed as
jme.opensearch.archive.base-uri. - An OAuth2 client registration referenced by the message operations, such as
pas-index-writer-read-client. - OpenSearch connectivity and the normal index-writer Kafka configuration.
These values intentionally do not appear in the standalone local profile. Deployment-specific packaging and environment configuration supply the concrete endpoint, topic, OAuth and secret settings.
Ownership
| Concern | Owner |
|---|---|
| Conditions, reference providers and inspection controllers | This OSS repository |
| Message and index-type artifacts | Public JME registries and Maven Central |
| Process Archive application behavior | JME Process Archive example |
| Environment endpoints, topics, OAuth clients and secrets | Platform deployment configuration |
| Deployed cross-application verification | Platform wrapper smoke tests |