Hi Team,
I'm working on a Kogito-based workflow and using an afterVariableChanged listener to react to process variable changes. Inside this listener, I immediately query the Data Index GraphQL API (userTaskInstances) to check the updated state of the process instance.
The Issue:Inside the listener, my GraphQL query returns the previous state.
For example:
Rephrasing my question. Kindly ignore my previous email.
Hi Team,
I’m working on a Kogito-based workflow and using the afterVariableChanged listener to respond to process variable updates. Within this listener, I immediately query the Data Index GraphQL API (UserTaskInstances) to check the latest state of the process instance.
The issue:
Inside the afterVariableChanged listener, my GraphQL query returns the last outputs as null in the latest input under UserTaskInstances.
However, if I run the exact same query externally (e.g., via Postman) at the same moment, I can see the expected outputs populated in the latest input under userTaskInstances.
Questions:
I have also tried using the afterProcessCompleted listener, but I am still seeing the same behavior.
Appreciate your insights and guidance on this.
Regards,
Pawan

The issue: Inside the afterVariableChanged listener, my GraphQL query returns the last outputs as null in the latest input under UserTaskInstances.However, if I run the exact same query externally (e.g., via Postman) at the same moment, I can see the expected outputs populated in the latest input under userTaskInstances.

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kogito-development/d25afecc-96fa-4bfa-9f6e-5effffd9a30an%40googlegroups.com.