Fill custom date attribute with value for artifacts in dng
2 answers
In that case you can try following workaraound:
//Get Feature Requirement Type URL
ResourceShape featureInstanceShape = RmUtil.lookupRequirementsInstanceShapes(
serviceProviderUrl, OSLCConstants.OSLC_RM_V2,
OSLCConstants.RM_REQUIREMENT_TYPE, client, "Feature");
// We need to use Resource shapes to properly handle date attributes attributes,
// so they aren't interpreted as dateTime.
// The following 4 lines will enable the logic to properly handle date attributes
List<ResourceShape> shapes = new ArrayList<ResourceShape>();
shapes.add(featureInstanceShape);
OSLC4JUtils.setShapes(shapes);
OSLC4JUtils.setInferTypeFromShape("true");
After that Eclipse Lyo seems to handle dtaeTime fields better,
Good luck
Comments
Gabriel Ruelas
Dec 11 '17, 1:55 p.m.Hi, Are you using OSLC reqeust directly or using o library like Eclipse Lyo ?