Getting Started with Content Script¶
This guide provides a quick introduction to Content Script and helps you get started with creating custom scripts and extending Content Server functionality.
What is Content Script?¶
Content Script is a Domain-Specific Programming Language (DSL) for OpenText Content Server. It enables you to programmatically interact with Content Server and external systems, automate business processes, create custom web interfaces, and extend Content Server functionality without traditional OScript development.
For a comprehensive overview, see the Content Script Architecture.
Key Components¶
The Content Script module includes:
- Content Script Objects - Document-class objects that contain executable Groovy-based scripts
- Web-based IDE - Integrated development environment for creating and editing scripts
- API Services - Comprehensive set of services for interacting with Content Server and external systems
- Event Callbacks - Synchronous and asynchronous event handlers for Content Server events
- REST API Support - Expose scripts as RESTful web services
- Workflow Integration - Use scripts as workflow steps with routing capabilities
- SDK - Toolkit for creating custom Content Script services
Quick Start Guide¶
1. Understanding the Basics¶
Start by reading the Content Script Architecture to understand:
- How Content Script works
- API Services and execution context
- Script execution modes and outputs
2. Creating Your First Script¶
Learn how to create and manage Content Script objects:
-
Content Script Objects - Creation, properties, static variables, scheduling, and impersonation
-
Content Script Editor - Learn how to use the web-based IDE to write and test scripts
3. Learning the Language¶
Understand the Content Script language syntax:
- Content Script Language - Groovy-based syntax, operators, closures, and programming constructs
4. Working with APIs¶
Explore the available API services:
- Content Script Architecture - Complete overview of all API services (docman, workflow, search, users, mail, etc.)
5. Event-Driven Programming¶
Implement event callbacks:
- Events and Callbacks - Synchronous and asynchronous event handlers for Content Server events
6. Extending Functionality¶
Explore advanced integrations:
- REST API - Expose scripts as RESTful web services
- Workflow Integration - Use scripts as workflow steps
- Rendition - Programmatically invoke external rendition engines
- SAP Integration - Integrate with SAP ERP systems
- SDK - Create custom Content Script services