OScope.Variable rootNode = new OScope.Variable(null, rootNodeType); rootNode.name = "__rootNode"; buf.append(genDeclarations(rootNode));
public void run() { if (process.getRootActivity() == null) { throw new CompilationException(__cmsgs.errNoRootActivity()); } // Process custom properties are created as variables associated // with the top scope if (_customProcessProperties != null) { for (Map.Entry<QName, Node> customVar : _customProcessProperties.entrySet()) { final OScope oscope = _structureStack.topScope(); OVarType varType = new OConstantVarType(_oprocess, customVar.getValue()); OScope.Variable ovar = new OScope.Variable(_oprocess, varType); ovar.name = customVar.getKey().getLocalPart(); ovar.declaringScope = oscope; ovar.debugInfo = createDebugInfo(null, "Process custom property variable"); oscope.addLocalVariable(ovar); if (__log.isDebugEnabled()) __log.debug("Compiled custom property variable " + ovar); } } _structureStack.topScope().activity = compile(process.getRootActivity()); } });
.errUnrecognizedVariableDeclaration(catchSrc.getFaultVariable())); faultVar = new OScope.Variable(_oprocess, faultVarType); faultVar.name = catchSrc.getFaultVariable(); faultVar.declaringScope = _structureStack.topScope();
final OScope oscope = _structureStack.topScope(); OVarType varType = new OConstantVarType(_oprocess, customVar.getValue()); OScope.Variable ovar = new OScope.Variable(_oprocess, varType); ovar.name = customVar.getKey().getLocalPart(); ovar.declaringScope = oscope;
.errUnrecognizedVariableDeclaration(onEvent.getVariable())); oevent.variable = new OScope.Variable(_oprocess, varType); oevent.variable.name = onEvent.getVariable(); oevent.variable.declaringScope = _structureStack.topScope();
.errUnrecognizedVariableDeclaration(onEvent.getVariable())); oevent.variable = new OScope.Variable(_oprocess, varType); oevent.variable.name = onEvent.getVariable(); oevent.variable.declaringScope = _structureStack.topScope();
.errUnrecognizedVariableDeclaration(catchSrc.getFaultVariable())); faultVar = new OScope.Variable(_oprocess, faultVarType); faultVar.name = catchSrc.getFaultVariable(); faultVar.declaringScope = _structureStack.topScope();
OScope.Variable ovar = new OScope.Variable(_oprocess, varType);
counterType.simple = true; counterType.xsdType = new QName(Namespaces.XML_SCHEMA, "int"); OScope.Variable counterVar = new OScope.Variable(oforEach.getOwner(), counterType); counterVar.name = forEach.getCounterName();