How to search DocumentPackage by attribute?
Tuesday, May 10, 2016 at 05:39amHi,
I want to create empty packages with DRAFT status and one custom attribute (i.e internalID).
DocumentPackage documentPackage = newPackageNamed("TEST_PACKAGE")
.withAttributes(newDocumentPackageAttributes()
.withAttribute("internalID", "123456" )
.build())
.build();
PackageId packageId = eslClient.createPackage(documentPackage);
Then, how can I do a search of the DRAFT packages with specific attribute 'internalID' ?
PageThanksresultPage = eslClient.getPackageService().getPackages(new PackageStatusConverter(PackageStatus.DRAFT).toAPIPackageStatus(), new PageRequest(1));
Reply to: How to search DocumentPackage by attribute?
Tuesday, May 10, 2016 at 08:04am