eXo Platform 3.5

## Chapter 11. Chromattic Data Object Usage

Chromattic Data Object files has MIME type application/x-chromattic+groovy. With eXo IDE you can create Chromattic Data Object files, create and preview node type.

The following topics are covered:

- Create a Data Object.

- Preview a Node Type.

- Create a Node Type.

## Create a Data Object

Click --> Data Object;

Or, go to File --> New --> Data Object from the top menu.

Your newly created file will be opened in editor, so you will be able to edit and save it.

## Preview a Node Type

1. Click on the Toolbar;

Or, go to Run --> Preview node type from the top menu.

2. Select a node type format in the appeared form:

- eXo: the standard XML content type to be used with XML-formatted node type streams.

- CND: the experimental content type for the compact node type definition files.

3. Click Generate. The generated node type definition will be displayed in the separate tab of Operation pane with title Preview node type:

## Create a Node Type

1. Click on the toolbar;

Or, go to Run --> Deploy node type from the top menu.

2. Select a required node type format in the Deploy Node Type form.

3. Select the action in case such node type already exists:

- ignore if exists: if the pointed node type already exists, the creation operation is ignored.

- fail if exists: if the pointed node type already exists, the creation operation fails.

- replace if exists: if the pointed node type already exists, the existing one will be replaced.

4. Click Deploy.

If the node type has been deployed successfully, you will see the message Node type is successfully deployed. Otherwise, the error message will be shown.

### Note

At present, the CND format is not supported for the deploy operation.

Copyright © 2009-2012. All rights reserved. eXo Platform SAS