apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

EPIC - Support deploy/undeploy SonataFlow Flow definitions events on Data Index #1201

Open ricardozanini opened 5 months ago

ricardozanini commented 5 months ago

Issues in this epic:

Originally posted by @fjtirado in https://github.com/apache/incubator-kie-kogito-serverless-operator/issues/458#issuecomment-2106922892

ricardozanini commented 5 months ago

@fjtirado @nmirasch can you please open the mentioned issues? 🙏

nmirasch commented 5 months ago

@ricardozanini here it is the dataindex related one https://github.com/apache/incubator-kie-kogito-apps/issues/2050

fjtirado commented 5 months ago

After some discussion, we agree that the simplest approach is to add a new event topic (to not interfere with audit component), which events will contain the id and version of the workflow plus the "deployment status". Data Index will consume that information and merge it into the process definition existing structure (therefore the result will be that the existing process definition in data index will include the deployment status as result of the queries) With this approach, we do not need any issue for runtime. In my original comment, I forgot to mention that we need an issue for tooling (for dealing with the new "deployment status" field)

ricardozanini commented 5 months ago

@paulovmr @caponetto can you assess?

In my original comment, I forgot to mention that we need an issue for tooling (for dealing with the new "deployment status" field)

We can add a task in this EPIC.

caponetto commented 5 months ago

IIUC, on the tooling side, we can filter out data by the new deployment status field on the queries. This way, we maintain the behavior of showing only those deployments that are indeed alive.