Skip to content
PDF

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:

3. Learning the Language

Understand the Content Script language syntax:

4. Working with APIs

Explore the available API services:

5. Event-Driven Programming

Implement event callbacks:

6. Extending Functionality

Explore advanced integrations: