Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Execução de Função de Aplicação no Workflow | Application Function Execution in Workflow #37305

Closed
1 task done
VulgoFelp opened this issue Nov 8, 2024 · 5 comments
Assignees
Labels
Enhancement New feature or request

Comments

@VulgoFelp
Copy link

VulgoFelp commented Nov 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Gostaria de sugerir a possibilidade de executar uma função de uma aplicação diretamente na configuração do workflow. Dessa forma, sempre que um endpoint específico for acionado, essa função seria automaticamente chamada para todos os usuários atualmente logados na aplicação.

I would like to suggest the ability to execute an application function directly in the workflow configuration. This way, whenever a specific endpoint is triggered, the function would automatically be called for all users currently logged into the application.

Why should this be worked on?

No meu caso, essa função chamaria uma consulta SQL que garantiria que os dados exibidos na tela para todos os usuários logados estejam sempre sincronizados e consistentes. Esse recurso seria extremamente útil em cenários onde é essencial que todos os usuários tenham informações atualizadas ao mesmo tempo, após uma determinada ação.

In my case, this function would run an SQL query to ensure that the data displayed on the screen is synchronized and consistent for all logged-in users. This feature would be extremely useful in scenarios where it is crucial that all users see updated information simultaneously after a particular action is performed.

@VulgoFelp VulgoFelp added the Enhancement New feature or request label Nov 8, 2024
@Nikhil-Nandagopal
Copy link
Contributor

@VulgoFelp I think what you are looking for is a way to integrate websockets into the application because that would be the only way I can think of to implement this.
One way to work around this today is to update the information in the backend and continuously poll information on the frontend. Let me know if there is another challenge you are facing
https://docs.appsmith.com/build-apps/how-to-guides/set-up-websockets
https://docs.appsmith.com/build-apps/how-to-guides/setup-polling

@VulgoFelp
Copy link
Author

VulgoFelp commented Nov 11, 2024 via email

@Nikhil-Nandagopal
Copy link
Contributor

@VulgoFelp you can use a websocket to achieve this efficiently
https://docs.appsmith.com/build-apps/how-to-guides/set-up-websockets

@VulgoFelp
Copy link
Author

Could you give me an example that I can use for my example above? @Nikhil-Nandagopal

@Nikhil-Nandagopal
Copy link
Contributor

@VulgoFelp the documentation link I shared explains how to use websockets.
You will need to setup a backend server to send socket data to the frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants