camunda / camunda

Process Orchestration Framework
https://camunda.com/platform/
3.12k stars 567 forks source link

[Epic] I can publish a message from a workflow instance #1021

Open saig0 opened 6 years ago

saig0 commented 6 years ago

AT:

Context:

### Tasks
- [ ] https://github.com/camunda/zeebe/issues/12878
- [ ] https://github.com/camunda/zeebe/issues/13398
ceefour commented 4 years ago

This is really useful and needed.

It's possible to workaround this by creating a generic worker that publish messages, but a built-in support in Zeebe is much preferred.

devdream02 commented 4 years ago

Hi @ceefour, by any chance have you created the generic worker you are mentioning above. Do you a sample code for the same?

ceefour commented 4 years ago

@devdream02 no I haven't.

but a pseudo-code worker using zeebe-node might be

zbclient.createWorker('sendMessage', (job, complete, worker) => {
  zbclient.sendMessage(job.variables.messageName,
    job.variables.correlationId, job.variables.message);
  complete.success();
});
skayliu commented 1 year ago

Hey, @saig0 @korthout, What about support a built-in publish messages using throw message event? AS [EPIC] Broadcast signal event using throw signal event #11918 did.

korthout commented 1 year ago

Hi @skayliu, I discussed the idea with @saig0, and we agree that this would be amazing to support! I believe the implementation could be rather straightforward. However, we should ensure the current behavior stays the same for users.

I'll be on holiday for the next two weeks, so please tag @camunda/zeebe-process-automation for any reviews or questions.

❤️ Thanks for offering to help out on this one! Looking forward to your contributions 🚀

lzgabel commented 1 year ago

Hi @korthout. Please assign this task to me. Thanks. ❤️