Skip to content

Generated Artifacts ​

Generated Classes in Detail ​

Role-Specific Output Directories ​

Generated sources are written into role-specific directories under target/generated-sources/pipeline, one per deployment role. Packaging relies on these directories instead of class-name patterns.

Build configuration notes:

  • Pass -Apipeline.generatedSourcesDir=target/generated-sources/pipeline to the compiler during compile only, to avoid warnings during testCompile.
  • Register the role directories as sources for IDEs via build-helper-maven-plugin.
  • If tests reference generated classes (e.g., REST resources), register the same directories as test sources in generate-test-sources.

For v3 records reachable from a REST or FUNCTION boundary, the compiler also emits one DTO under <basePackage>.dto and deterministic typed mappers under <basePackage>.transport.generated. These artifacts are generated for both application-authored and contributed protocol records. Connector libraries remain transport-neutral and do not ship application REST DTOs.

Generated Pipeline Metadata ​

The build also emits runtime metadata under META-INF/pipeline/:

  • order.json: resolved runtime execution order
  • telemetry.json: item-boundary and parent-step telemetry metadata
  • replay-topology.json: replay and live-topology metadata used by execution-event playback and trace-aware topology surfaces
  • connector-bindings.json: schema 3 sanitized connector bindings and operations used by both local and imported steps. Referenced release-time capability imports include only source, operation, wire-contract, pin, and accepted representation fingerprints; connection and secret values are never emitted
  • pipeline-contract.json: deterministic schema 3 release contract. Imported Blocks include package provenance, source and linked definition fingerprints, and resolved capability metadata. The resolution records binding/provider/operation versions, application-selected Command authority, and a sanitized connector-configuration digest. Imported callable catalogues additionally record source step, alias, canonical contracts, trusted source/target mappings, and the resolved native Query or Command target. When compiled placement resolves nested/self invocation locality or colocated REST/GRPC execution segments, the contract also emits an additive placement section recording per-invocation locality (LOCAL_IN_SEGMENT or REMOTE_BOUNDARY) and the branch- and recursion-aware execution segment graph derived from actual Await boundaries (omitted when absent to preserve legacy contract hashes). Raw configuration, credentials, prompts containing application data, and runtime context values are never emitted.
  • connector-operation-provenance.json: source-owned schema 1 provenance for imported Connector operations. The compiler projects only referenced operations into capabilityImports; the full source contract is never copied into runtime metadata.
  • http-operations.json: schema 2 immutable private wire pins for imported http.client operations, including selected callback schemas, injection targets, security compatibility, and acknowledgement status.
  • http-operation-bindings.json: compiler-generated direct or mapper-class bindings for each referenced HTTP request, response, and callback representation. Runtime-supplied callback URI paths are excluded from authorable input mappings.

A native Command with await.callback remains one semantic node in execution order, branching, and replay topology. Its branching input is the original Command request; its replay node carries the Command role and deferred-completion overlay. No callback URL or credential enters these resources.

If you package a grouped runtime such as monolith or pipeline-runtime, keep these resources aligned with the runtime artifact that will execute the pipeline.

gRPC Adapter Generation ​

The gRPC adapter acts as a server-side endpoint that:

  1. Receives gRPC requests
  2. Uses the inbound mapper to convert gRPC objects to domain objects
  3. Calls the actual service implementation
  4. Uses the outbound mapper to convert domain objects to gRPC responses
java
// Generated class structure (simplified)
public class ServiceNameGrpcService extends ServiceNameGrpc.ServiceNameImplBase {

    @Inject
    PaymentRecordInboundMapper inboundMapper;

    @Inject
    PaymentStatusOutboundMapper outboundMapper;

    @Inject
    ServiceName service;  // Your actual service implementation

    @Override
    public Uni<PaymentGrpcOut> remoteProcess(PaymentGrpcIn request) {
        // Delegates to an inline GrpcReactiveServiceAdapter based on the streaming shape
        return /* adapter */.remoteProcess(request);
    }
}

gRPC Step Class Generation ​

The step class acts as a client-side component that:

  1. Connects to the gRPC service
  2. Implements the pipeline step interface
  3. Handles the conversion between domain objects and gRPC calls
java
// Generated class structure
@ApplicationScoped
public class ServiceNameGrpcClientStep implements StepOneToOne<DomainIn, DomainOut> {

    @Inject
    @GrpcClient("service-name")
    StubClass grpcClient;

    public Uni<DomainOut> applyOneToOne(DomainIn input) {
        // Convert domain to gRPC
        GRpcIn grpcInput = convertDomainToGrpc(input);

        // Call remote service
        return grpcClient.remoteProcess(grpcInput);
    }
}

Orchestrator Application Structure ​

The orchestrator application coordinates pipeline execution by using the PipelineExecutionService to connect all generated steps:

java
// Orchestrator application that coordinates execution
@CommandLine.Command(...)
public class OrchestratorApplication implements QuarkusApplication, Callable<Integer> {

    @Inject
    PipelineExecutionService pipelineExecutionService;

    public Integer call() {
        // Create input stream from input parameter
        Multi<DomainInput> inputStream = createInputStream(input);

        // Execute pipeline using the injected service
        // The service discovers all registered step implementations through dependency injection
        pipelineExecutionService.executePipeline(inputStream)
            .collect().asList()
            .await().indefinitely();

        return CommandLine.ExitCode.OK;
    }
}

The actual pipeline execution is handled by the PipelineExecutionService which discovers all available step implementations through the StepsRegistry.

Generated Code Verification ​

Viewing Generated Sources ​

Generated sources can be found in the target directory:

bash
# Generated pipeline sources location
target/generated-sources/pipeline/

# Generated classes location
target/classes/

Debugging Generation Issues ​

Enable verbose logging to debug generation issues:

properties
# application.properties
quarkus.log.category."org.pipelineframework.processor".level=DEBUG

Build Census ​

Build census observes the structural shape of compiled TPF applications, never runtime activity, source code, names, or payloads. It adds no code to generated execution paths. Starting with compiler 26.12.2, approved releases report by default through the annotation processor (earlier approved releases, including 26.12.1, require .mvn/extensions.xml); snapshots and unapproved builds keep public reporting disabled.

Opt out ​

Disable census with any one of:

sh
export TPF_CENSUS_ENABLED=false
text
-Dtpf.census.enabled=false
-Atpf.census.enabled=false

Any disabling setting wins (including invalid values) and creates no local state, identity, or network request.

Delivery and state ​

  • Default reporting (26.12.2 and later): On an approved release, the annotation processor stages eligible observations into an owner-only local outbox and launches a detached sender process on Linux and macOS (or drains asynchronously on Windows) with no .mvn/extensions.xml required. Compilation never waits for the network, and census failures never affect build results.
  • Cadence and recovery: Eligible builds queue on first use, on changed values (at most once per UTC day), or on the first build in a new UTC ISO week. Pending entries survive offline runs or terminated CI senders for a subsequent build sharing retained state within the collector's two-day UTC acceptance window.
  • Retained state: Identity and outbox state are stored per installation outside the project (Linux: $XDG_STATE_HOME/tpf/census or ~/.local/state/tpf/census; macOS: ~/Library/Application Support/TPF/census; Windows: %LOCALAPPDATA%\TPF\census). Override with TPF_CENSUS_STATE_DIR. Known CI and container hosts do not report unless TPF_CENSUS_STATE_PERSISTENT=true is set alongside genuinely retained storage.
  • Maven core extension (optional in 26.12.2+; required in 26.12.1): On Maven 3.9 / JDK 21+ (Linux and macOS), registering pipelineframework-compiler in .mvn/extensions.xml (matching your compiler version) enables reporting on 26.12.1 and coordinates a single session-end flush for forked-javac or parallel reactors:
xml
<extensions>
  <extension>
    <groupId>org.pipelineframework</groupId>
    <artifactId>pipelineframework-compiler</artifactId>
    <version><!-- match the compiler version used by the application --></version>
  </extension>
</extensions>

Local preview ​

Inspect the exact candidate event without sending any network request:

text
-Atpf.census.mode=preview
-Atpf.census.preview=/absolute/private/path/census-preview.json

Environment variables TPF_CENSUS_MODE=preview and TPF_CENSUS_PREVIEW work the same way. Choose a fresh, non-existent filename outside source, generated, and build output directories. Preview writes the candidate event, local deduplication digest, and eligibility reason for the module generating the application orchestrator.

Collected values and privacy ​

Each schema v1 observation records random pseudonymous installation and application-instance IDs, the UTC date, packaged compiler and contracts versions, the compiler JVM Java major version, transport, platform, runtime layout, and coarse count bands (0, 1, 2–5, 6–10, 11–25, 26–50, 51–100, 101+, unknown) for:

  • Structure: reachable pipeline definitions, authored logical steps, canonical types, and linked Block packages.
  • Features: nested invocations, ONE_TO_MANY, MANY_TO_ONE, Query, Command, and Await.

No names, source code, packages, Maven coordinates, URLs, schemas, payloads, credentials, local paths, or runtime metrics enter the event. telemetry.json and pipeline-contract.json are never uploaded. See the v1 protocol schema (bundled in the compiler at META-INF/tpf/census-v1.schema.json) and privacy runbook.

Accepted observations are stored in a dedicated EU-jurisdiction Cloudflare D1 database for up to 90 days, plus Cloudflare D1 recovery history (7 days on the current plan; up to 30 days if upgraded). Public statistics on Ecosystem Usage contain no identifiers. Cloudflare, Inc. delivers and protects the site and endpoint under the Cloudflare Customer DPA (EU Standard Contractual Clauses and Data Privacy Framework certifications), retaining aggregate edge security and traffic metadata for up to 31 days without storing request bodies or selling or sharing data.

For privacy or deletion requests, inspect state.json locally for your installation_id and email team@pipelineframework.org (never publish state.json or preview output). Resetting local state creates new counting identities and does not erase previously received observations. Runtime observability is documented under Operate.

Diagram