@Test public void testCreateItemDefinitionNoType() { ItemDefinition definition = writer.createItemDefinition("variableOne", ""); assertEquals("Must Be Object Type", Object.class.getName(), definition.getStructureRef()); definition = writer.createItemDefinition("variableTwo", "java.lang.String"); assertEquals("Must Be String Type", String.class.getName(), definition.getStructureRef()); }
protected ItemDefinition createItemDefinition(String name, String type) { ItemDefinition item = bpmn2.createItemDefinition(); item.setId(Ids.multiInstanceItemType(activity.getId(), name)); String varType = type.isEmpty() ? Object.class.getName() : type; item.setStructureRef(varType); return item; }
MultipleInstanceActivityPropertyWriter extends ActivityPropertyWriter { protected ItemDefinition createItemDefinition(String name, String type) { ItemDefinition item = bpmn2.createItemDefinition(); item.setId(Ids.multiInstanceItemType(activity.getId(), name)); String varType = type.isEmpty() ? Object.class.getName() : type; item.setStructureRef(varType); return item; } }
MultipleInstanceActivityPropertyWriter extends ActivityPropertyWriter { protected ItemDefinition createItemDefinition(String name, String type) { ItemDefinition item = bpmn2.createItemDefinition(); item.setId(Ids.multiInstanceItemType(activity.getId(), name)); String varType = type.isEmpty() ? Object.class.getName() : type; item.setStructureRef(varType); return item; } MultipleInstanceActivityPropertyWriter(Activity activity,
                                                  VariableScope variableScope,
                                                  Set<DataObject> dataObjects); }
MultipleInstanceActivityPropertyWriter extends ActivityPropertyWriter { protected ItemDefinition createItemDefinition(String name, String type) { ItemDefinition item = bpmn2.createItemDefinition(); item.setId(Ids.multiInstanceItemType(activity.getId(), name)); String varType = type.isEmpty() ? Object.class.getName() : type; item.setStructureRef(varType); return item; } MultipleInstanceActivityPropertyWriter(Activity activity,
                                                  VariableScope variableScope,
                                                  Set<DataObject> dataObjects); void setCollectionInput(String collectionInput); void setCollectionOutput(String collectionOutput); void setInput(String name); void setOutput(String name); void setOutput(String name, boolean addDataOutputAssociation); void setCompletionCondition(String expression); void setIsSequential(boolean sequential); }
MultipleInstanceActivityPropertyWriter extends ActivityPropertyWriter { protected ItemDefinition createItemDefinition(String name, String type) { ItemDefinition item = bpmn2.createItemDefinition(); item.setId(Ids.multiInstanceItemType(activity.getId(), name)); String varType = type.isEmpty() ? Object.class.getName() : type; item.setStructureRef(varType); return item; } MultipleInstanceActivityPropertyWriter(Activity activity,
                                                  VariableScope variableScope,
                                                  Set<DataObject> dataObjects); void setCollectionInput(String collectionInput); void setCollectionOutput(String collectionOutput); void setInput(String name); void setOutput(String name); void setOutput(String name, boolean addDataOutputAssociation); void setCompletionCondition(String expression); void setIsSequential(boolean sequential);  }