Defining a document schema
A document definition is a schema with fields defined in JSON format. You create a document definition to access individual attributes within a metadata object and then use those attributes in an expression for a process. A document definition supports only JSON key value pairs to access attributes, such as a complex object, an array of objects, an array of strings, or nested complex objects.
A document definition defines the communication between two third-party modules. You can define a document definition when you communicate with a third-party module by using custom actions or connectors. The document definition enables you to access the attributes returned by the custom actions or connectors and use these attributes as an input or output within a process.
To create a document definition
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application for which you want to add a document definition.
- On the Documents tab, click New.
In the Create Document Definition window, specify the properties for the document definition.
The following table provides information about the properties:Property
Description
Document Name
Type a unique name that identifies the document.
Document Schema
Provide a document schema in JSON format that defines the property structure of the document definition.
Example 1:
Example 2:
Scope/Customization Options
To define the scope of the document definition set the following options:
- (Default) Application/Library—Limits the use of the definition within the same application or library.
- Public—Enables the definition to be used by all applications or libraries and allows customization to this definition.
- Click Save.
Where to go from here
Action | Reference |
---|---|
Use the created document definition to access complex objects, array of objects, array of strings, and nested complex objects within the metadata object and use these objects as input or output to an expression within a process. | |
Create data for the structure defined by document definition. |