| | |
| | | throws InitializationException |
| | | { |
| | | List<Attribute> attrList = taskEntry.getAttribute(attributeName.toLowerCase()); |
| | | if (attrList == null || attrList.isEmpty()) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | if (isRequired) |
| | | { |
| | |
| | | { |
| | | LinkedList<String> valueStrings = new LinkedList<>(); |
| | | List<Attribute> attrList = taskEntry.getAttribute(attributeName.toLowerCase()); |
| | | if (attrList == null || attrList.isEmpty()) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | return valueStrings; |
| | | } |
| | |
| | | |
| | | final List<Attribute> attrList = taskEntry.getAttribute(type); |
| | | ByteString value = ByteString.valueOfUtf8(messageString); |
| | | if (attrList == null) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | taskEntry.putAttribute(type, newArrayList(Attributes.create(type, value))); |
| | | } |
| | | else if (attrList.isEmpty()) |
| | | { |
| | | attrList.add(Attributes.create(type, value)); |
| | | } |
| | | else |
| | | { |
| | | AttributeBuilder builder = new AttributeBuilder(attrList.get(0)); |