Feature added: Support for BinaryResource format in addition to XMI
1 fil de conversation non résolu
1 fil de conversation non résolu
This update enhances the solution by enabling support for the BinaryResource format. Previously, the algorithm could only handle XMI Resource, but with this improvement, it can now read and process BinaryResource as well.
The support for BinaryResource has been added in a transparent way, meaning that existing workflows using XMI Resource remain unchanged. The system automatically handles, in a "try catch" manner, the appropriate format without requiring modifications from the user.
The BinaryResource format is introduced for performance optimization, as it offers:
- Faster deserialization, improving overall processing speed.
Rapports de requête de fusion
Activité
Filtrer l'activité
351 352 val trace = _self.package.tracePath 352 353 val OCL ocl = OCL.newInstance() 353 354 var OCLExpression exp 354 var context = (new ResourceSetImpl()).getResource(URI.createPlatformResourceURI(trace,true),true).getContents().get(0) 355 356 val rs = new ResourceSetImpl() 357 var EObject context 358 val traceUri = URI.createPlatformResourceURI(trace,true) 359 try { 360 //Try to load a xmi resource 361 context = rs.getResource(traceUri,true).getContents().get(0)
Veuillez vous inscrire ou vous connecter pour répondre