[英]Initializing Activiti process variables in XML process definition
Currently i have to define each process variable before execution of the process and pass it to the startProcessInstanceBy*
functions of Activiti. 目前,我必须在执行流程之前定义每个流程变量,并将其传递给Activiti的startProcessInstanceBy*
函数。 I wonder if it's possible to define these with default values in the process definition XML? 我想知道是否可以在流程定义XML中使用默认值来定义它们? This way i can avoid changing Java code if my process needs new variables for execution. 这样,如果我的流程需要新的变量来执行,就可以避免更改Java代码。 Can i achieve this somehow? 我能以某种方式实现这一目标吗?
您可以在开始事件之后使用script task
来设置这些变量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.