you can use a script task
just after your start event to set up these variables
Initializing Activiti process variables in XML process definition
-
02-12-2021 - |
Pregunta
Currently i have to define each process variable before execution of the process and pass it to the startProcessInstanceBy*
functions of Activiti. I wonder if it's possible to define these with default values in the process definition XML? This way i can avoid changing Java code if my process needs new variables for execution. Can i achieve this somehow?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow