eXo Platform 3.5

## Chapter 12. Chromattic Data Object Usage

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

## Create Data Object

To create new data object click the New > Data Object Toolbar button; or go to File > New > Data Object on the top menu. New file will be opened in editor, so you will be able to edit and save it.

## Preview Node Type

To generate the node type definition and preview it, do the follows:

Step 1. Click Preview node type button on Toolbar or go to Run > Preview node type from the top menu.

Step 2. Select format of node type in the appeared dialog window:

- EXO standard XML content type to be used with XML-formatted node type streams;

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

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

Illustration. Preview node type definition

## Create Node Type

To create new node type, do as follows:

- Step 1. Click Deploy node type button on Toolbar or go to Run > Deploy node type on the top menu.

- Step 2. Select required format of node type in the appeared dialog window.

- Step 3. Choose the action in case if such node type already exists:

- ignore if exists if the pointed node type already exists, then ignore the creation operation. - fail if exists if the pointed node type already exists, then fail. - replace if exists if the pointed node type already exists, then replace it with new one.

- Step 4. Click Deploy button.

Illustration. Deploy the node type definition

If 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, CND format is not supported for the deploy operation.