Defining a document schema
A document definition defines the communication between two third-party modules. When you communicate with a third-party module, you can define a document 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, and click New.
Specify the properties for the document definition.
The following table provides information about the properties:Property
Description
Example
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:
{"status":""}Example 2:
{"status":"","error":{"errorCode":"","errorMessage":""}}Scope/Customization options
Define the scope of the document definition by setting the following options:
- (Default) Application/Library—You can use this option to limit the use of the definition within the same application or library.
- Public—You can use this option to enable the definition to be used by all applications or libraries and allows customization to this definition.
- Click Save.
To copy a document definition
You can reuse an existing document definition by copying it within the application or to a different application or library.
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application or library from which you want to copy the document.
- Click Documents, select the document definition that you want to copy, and click Copy.
In the Copy definition dialog box, enter the following details:
- From Target application/library, select the target application or library where you want to copy the document.
- In the Definition name field, type a name for the document definition.
- Click Save.
The copied document is saved in the target application.
Where to go from here
Use the information in the following table to navigate to the topic relevant to your goal.
Action | Reference |
---|---|
Use the created document definition to access complex objects, an array of objects, an 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 the document definition. |