ound an answer, thought I'd post for others to use. In the called process, define a start event listener that looks up the super execution and pulls all the variables local. Very handy and easy. public class WorkflowVariableInjectorListener implements ExecutionListener { private static final long serialVersionUID = 1L; static Logger logger = Logger.getLogger(WorkflowVariableInjectorListener.class); @Override public void notify(DelegateExecution execution) throws Exception { logger.info("In notify"); if (execution instanceof ExecutionEntity) { ExecutionEntity executionEntity = (ExecutionEntity) execution; ExecutionEntity parentEntity = executionEntity.getSuperExecution(); if (parentEntity != null) { // Copy all the variables into me executionEntity.setVariables(parentEntity.getVariables()); } } } } http://forums.activiti.org/content/how-pass-all-parent-variables-called-process
How to pass all parent variables to a called process
精选 转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
bash variables plus operator All In One
bash variables plus operator All In One
zsh Linux bash script bash linux -
vue watch ancestor parent child pass object
vue watch ancestor parent child pass object
watch vue Object sed github