Replies: 2 comments 1 reply
-
Hello Michael I think that behavior of fetching of all variables when handler is annotated with The easiest way to support your case is adding ability to pass Best regards |
Beta Was this translation helpful? Give feedback.
-
Hello Alexey Yes, I agree. I also think we should add a new flag to the HandlerVarialbes to avoid a breaking change. We will implement this and create a pull request for it. Thanks. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi Alexey
First of all - thank you for your great work on this project!
I have a question about getting local process variables. I would like to be able to get all local process varaibles from an external task, but without knowing their names. I have tried removing the array of process variable names from the HandlerVariables and just set the LocalVariables attribute to true, but still no process variables are returned. I have looked at the payload sent to Camunda in this case, and it looks somehting like this:
The "variables" attribute is passed as an empty array which is why Camunda returns nothing.
Looking at the Camunda REST API for the fetch and lock operation, it says:
If the varialbes attribute is not provided (missing or null) ALL varialbes will be returned. This behaviour combined with the option of only getting local varialbes will get me all the local variables of an external task - without knowing their names in advance - and that is exactly what I am looking for.
What do you think about such a change?
Best regards
Michael
Beta Was this translation helpful? Give feedback.
All reactions