-
Feature
-
Resolution: Done
-
Major
-
1.33.0, 1.34.0, 1.35.0
-
None
When the Data Index is present, the SonataFlow operator must produce deployed/undeployed events for Data Index consumption. This information will be used to mark a ProcessDefinition as available/unavailable.
After team discussion, we agreed to introduce a "status" field in the workflow definition metadata stored in the Data Index. When a workflow is deployed/undeployed, the operator will send a ProcessDefinition event to the Data Index, sending the following metadata as part of it.
{
"metadata" :
{ "status" : "available" }
}
{ "metadata" :
{ "status" : "unavailable" }
}
Interested parties can query that information using a Data Index query like this, e.g.:
{
ProcessDefinitions (
where:{metadata: {status: {equal: "available"}}}
) {
id
metadata
}
}
{
ProcessDefinitions (
where:{metadata: {status: {equal: "unavailable"}}}
) {
id
metadata
}
}