← Back to Index

5.9.3 Release Notes

For Developers

Elasticsearch Page Provider

We've added support for documents indexation with Elasticsearch. When you install this module, all the commons page providers will query Elasticsearch instead of your RDBMS. When choosing this design (that remains optional), you'll benefit of a greater scalability (as being able to answer to more concurrent requests thanks to Elasticsearch scalability).

Box.net API Implementation

The Nuxeo addon nuxeo-box-api is an implementation of the Box API on top of the Nuxeo Platform repository. It transforms the Nuxeo content repository into a Box compliant storage backend. Use cases of such an approach are:

Don't hesitate to read our CTO Thierry Delprat's interview to get a better idea.

Here are some examples:

Folders:

    GET http://localhost:8080/nuxeo/box/2.0/folders/{folder_id}

looks like

    GET https://api.box.com/**2.0/folders/{folder id}**

Files:

    GET http://localhost:8080/nuxeo/box/2.0/files/{file_id}

looks like

    GET https://api.box.com/**2.0/files/{file_id}**

Facilitators for Escalation Rules Configuration

Simplify frequent escalation rules use cases by providing some functions usable in the conditional expression:

That way, the following current condition


@{!(NodeVariables["last_reminder"] == empty) &&
 Context["taskDueTime"].compareTo(CurrentDate.calendar) < 0 &&
 Fn.date(NodeVariables["last_reminder"]).days(1).calendar.compareTo(CurrentDate.calendar) < 0}

would be replaced by:

 @{timeSinceDueDateIsOver() > 0 && timeSinceRuleHasBeenFalse(86400000) }

without having to deal with adding a custom node variable etc...

Calendar Facet

We have added a calendar facet that allows to easily set Calendar objects in the repository. They themselves display events in a calendar style, with ability to bind documents to calendars and events. This feature is very useful on Case Management projects, where one wants to review cases on specific events. Thanks to this roadmap item, it is a matter of a few minutes to setup some calendars in your application! The feature is made available in the already existing nuxeo-agenda module.

REST API Endpoint for Types and Schemas

We added a new REST API endpoint for document types and schemas. It can be useful when implementing something like a connector. See NXP-14114 for details.

Improve File Download with the REST API

We've work on the Blob property JSON representation. See NXP-13616 for details.

Before:

"file:content": { 
            "name": "Nuxeo_Platform_5.8_administration_documentation.pdf", 
            "mime-type": "application/pdf", 
            "encoding": null, 
            "digest": "4faa1208dbd8dce54db9174dabdec7db", 
            "length": "11485973", 
            "data": "files/80438e3b-48bb-42d1-9e08-9a0f54b8f945?path=%2Fcontent" 
        }, 

Now:

"file:content": { 
            "name": "Meetup Docker.pdf", 
            "mime-type": "application/pdf", 
            "encoding": null, 
            "digest": "f829ff57c289b60be5dd2c57adcf1d51", 
            "length": "5980167", 
            "data": "http://localhost:8080/nuxeo/nxbigfile/default/e596bd67-aaa5-4a43-a84c-bcf4850c4834/file%3Acontent" 
        }, 

Giving a Comment When following a Transition

This is something we should have done a long time ago but it's finally here. You can now pass a comment when following a transition. To do this you simply add a comment in the document's context map like this:

        doc = session.createDocument(doc);
        doc.putContextData("comment", "a comment");
        session.followTransition(doc, "approve");