public VariableDeclaration(String identifier, String type) { this.identifier = identifier; this.type = type; this.typeDeclaration = bpmn2.createItemDefinition(); this.typeDeclaration.setId(Ids.item(identifier)); this.typeDeclaration.setStructureRef(type); this.typedIdentifier = bpmn2.createProperty(); this.typedIdentifier.setId(Ids.typedIdentifier("GLOBAL", identifier)); this.typedIdentifier.setName(identifier); this.typedIdentifier.setItemSubjectRef(typeDeclaration); }
itemdef.setId("_" + prop.getId() + "Item"); prop.setItemSubjectRef(itemdef); rootLevelProcess.getProperties().add(prop); ((Definitions) baseElt).getRootElements().add(itemdef); itemdef.setId("_" + prop.getId() + "Item"); prop.setItemSubjectRef(itemdef); rootLevelProcess.getProperties().add(prop); ((Definitions) baseElt).getRootElements().add(itemdef);
Variable(String parentScopeId, String identifier, String type) { this.parentScopeId = parentScopeId; this.declaration = new VariableDeclaration(identifier, type); this.typeDeclaration = bpmn2.createItemDefinition(); this.typeDeclaration.setId(Ids.item(identifier)); this.typeDeclaration.setStructureRef(type); this.typedIdentifier = bpmn2.createProperty(); this.typedIdentifier.setId(Ids.typedIdentifier(parentScopeId, identifier)); this.typedIdentifier.setName(identifier); this.typedIdentifier.setItemSubjectRef(typeDeclaration); }
itemdef.setId("_" + prop.getId() + "Item"); prop.setItemSubjectRef(itemdef); sp.getProperties().add(prop); addSubprocessItemDefs(itemdef);