@Test public void JBPM_7447_shouldNotFilterOutDataOutputsWithEmptyType() { DataInput dataInput = bpmn2.createDataInput(); dataInput.setName("InputName"); dataInput.setId("InputID"); DataOutput dataOutput = bpmn2.createDataOutput(); dataOutput.setName("OutputName"); dataOutput.setId("OutputID"); ParsedAssignmentsInfo result = AssignmentsInfos.parsed( Collections.singletonList(dataInput), Collections.emptyList(), Collections.singletonList(dataOutput), Collections.emptyList(), false ); assertFalse(result.getOutputs().getDeclarations().isEmpty()); }
public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutputDeclarations(dataoutput); AssociationList associations = new AssociationList( inAssociationDeclarations(inputAssociations), outAssociationDeclarations(outputAssociations)); return new ParsedAssignmentsInfo( inputs, outputs, associations, alternativeEncoding); }
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutputDeclarations(dataoutput); AssociationList associations = new AssociationList( inAssociationDeclarations(inputAssociations), outAssociationDeclarations(outputAssociations)); return new ParsedAssignmentsInfo( inputs, outputs, associations, alternativeEncoding); } }
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutputDeclarations(dataoutput); AssociationList associations = new AssociationList( inAssociationDeclarations(inputAssociations), outAssociationDeclarations(outputAssociations)); return new ParsedAssignmentsInfo( inputs, outputs, associations, alternativeEncoding); }  }
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutputDeclarations(dataoutput); AssociationList associations = new AssociationList( inAssociationDeclarations(inputAssociations), outAssociationDeclarations(outputAssociations)); return new ParsedAssignmentsInfo( inputs, outputs, associations, alternativeEncoding); }  static AssignmentsInfo of(
            final List<DataInput> datainput,
            final List<DataInputAssociation> inputAssociations,
            final List<DataOutput> dataoutput,
            final List<DataOutputAssociation> outputAssociations,
            boolean alternativeEncoding); static ParsedAssignmentsInfo parsed(
            List<DataInput> datainput,
            List<DataInputAssociation> inputAssociations,
            List<DataOutput> dataoutput,
            List<DataOutputAssociation> outputAssociations,
            boolean alternativeEncoding); static boolean isReservedDeclaration(DataInput o); static boolean isReservedIdentifier(String targetName); }
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutputDeclarations(dataoutput); AssociationList associations = new AssociationList( inAssociationDeclarations(inputAssociations), outAssociationDeclarations(outputAssociations)); return new ParsedAssignmentsInfo( inputs, outputs, associations, alternativeEncoding); }  static AssignmentsInfo of(
            final List<DataInput> datainput,
            final List<DataInputAssociation> inputAssociations,
            final List<DataOutput> dataoutput,
            final List<DataOutputAssociation> outputAssociations,
            boolean alternativeEncoding); static ParsedAssignmentsInfo parsed(
            List<DataInput> datainput,
            List<DataInputAssociation> inputAssociations,
            List<DataOutput> dataoutput,
            List<DataOutputAssociation> outputAssociations,
            boolean alternativeEncoding); static boolean isReservedDeclaration(DataInput o); static boolean isReservedIdentifier(String targetName);  }