
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
zeebe-node-nestjs
Advanced tools
for older zeebe please use @payk/nestjs-zeebe
// main.ts
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ZeebeServer } from 'zeebe-node-nestjs';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const microservice = app.connectMicroservice({
strategy: app.get(ZeebeServer),
});
await app.startAllMicroservicesAsync();
await app.listen(3000);
}
bootstrap();
// app.module.ts
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { ZeebeModule, ZeebeServer } from 'zeebe-node-nestjs';
@Module({
imports: [
ZeebeModule.forRoot({ gatewayAddress: 'localhost:26500' })
],
controllers: [AppController],
providers: [ZeebeServer],
})
export class AppModule {}
// app.controller.ts
import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';
import { ZBClient, Duration } from 'zeebe-node';
import { ZEEBE_CONNECTION_PROVIDER, ZeebeWorker } from 'zeebe-node-nestjs';
@Controller()
export class AppController {
constructor(
private readonly appService: AppService,
@Inject(ZEEBE_CONNECTION_PROVIDER)
private readonly zbClient: ZBClient,
) {}
// Use the client to create a new process instance
@Get()
getHello(): Promise<CreateWorkflowInstanceResponse> {
return this.zbClient.createProcessInstance('Process_sample', { test: 1 });
}
// Subscribe to events of type 'Activity_test'
@ZeebeWorker('Activity_test')
async test(job) {
console.log(job);
this.appService.doSomething();
job.complete();
}
// publish a message
@Post()
sendHello() {
this.zbClient.publishMessage({
name: 'message_notification',
correlationKey: '1234',
variables: { greeting: 'Hello' },
timeToLive: Duration.seconds.of(10),
});
}
}
FAQs
Zeebe-Node client wrapper for NestJS
We found that zeebe-node-nestjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.