protected void createDefaultVariable(Transition transition, String variableName) {
WorkflowProcess process = (WorkflowProcess) transition.getParent().getParent();
Map dataFieldMap = XMLUtil.getPossibleDataFields(process);
if (dataFieldMap.isEmpty() || dataFieldMap.get(variableName) == null) {
// default variable does not exist, create new one
DataFields dfs = process.getDataFields();
DataField df = (DataField)dfs.generateNewElement();
df.setId(variableName);
dfs.add(df);
}
}