# Execute some code immediately after workflow completion?

**URL:** <https://community.temporal.io/t/execute-some-code-immediately-after-workflow-completion/298>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [July 27, 2020, 11:55pm UTC](https://community.temporal.io/t/execute-some-code-immediately-after-workflow-completion/298 "2020-07-27T23:55:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![silmarx](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/silmarx/32/37_2.png) [@silmarx](https://community.temporal.io/u/silmarx)\
**Post date:** [July 28, 2020, 9:56am UTC](https://community.temporal.io/t/execute-some-code-immediately-after-workflow-completion/298/5 "2020-07-28T09:56:31Z")

</div>

That would be great. This would allow easy integration with other systems. Analytics is one example, but also monitoring and progress report are use-cases that would be easy to implement with such integration. I would say that any event in the workflow should be a message to an external queue, not only the workflow completion.  
In the other hand, if we don’t have a message system, would it be feasable to get it directly from the database, for example, using Kafka Connectors. Does it make sense?

---

_[View the full topic](https://community.temporal.io/t/execute-some-code-immediately-after-workflow-completion/298)._
