After my 2 services has been completed and successfully created the user. I didn’t get a response back anymore. I’m not sure what I am missing but here is my model
I need to reach the timer boundary.
I’m using nest js, after user:create complete, do I need to trigger something?
@ZeebeWorker('user:create')
async createUser(@Payload() job: ZeebeJob<CreateUser>): Promise<void> {
this.logger.debug(`Create user ${job.variables.emailAddress}`);
this.logger.debug(job.variables);
try {
await job.complete({ user: job.variables });
} catch (error) {
this.logger.error(error);
if (error instanceof Error) {
await job.complete({ error: { message: error.message } });
} else {
await job.fail(JSON.stringify(error));
}
}
// Didn't work
@ZeebeWorker('email:send')
async sendEmailReminder(@Payload() job: ZeebeJob): Promise<void> {
this.logger.debug('Email send: Its working');
}
}
I have no idea about none intermediate thrown event and manual task on how to do it programatically. Any idea would help TIA
BTW our process in this part, after user is created, it will send reminder to the user every after 2 days until he logs in
