I want to transform the value of a variable based on a user input(here the user is the person that will design the process), however I want to make that transformation invisible to the user (ex: change a text or make some calculations). So, the idea would be to encapsulate this transformations inside a custom component. This component would have an input field where the user would place some value. Then the component would take that value and the value of a previous variable defined in the process, and change it.
I think there are some methods (get Process Variable Values) to get the value of the variables in the process, but because the same process can run multiple instances at the same time, I believe I need the process id (or taskid?) of the current context of the component.