ποΈ Get Started With Rules
This topic helps you to get started with Deploy rules.
ποΈ Tutorial for Using Rules
The rules system works with the Deploy planning phase. You can use XML or Jython to specify the steps that belong in a deployment plan and how the steps are configured.
ποΈ Best Practices for Rules
This topic provides examples of best practices to use when writing Deploy rules.
ποΈ Define a Rule
This topic provides information about Deploy rules, which allow you to use XML or Jython to specify the steps included in a deployment plan and how these steps are configured.
ποΈ Rule Objects and Properties
When you define an XML or script rule in Deploy, you use expressions or scripts to define its behavior. These are written in Jython, a combination of Python and Java.
ποΈ Write Script Rules
A script rule adds steps and checkpoints to a plan by running a Jython script that calculates which steps and checkpoints to add.
ποΈ Write XML Rules
The Deploy rules system enables you to use XML or Jython to specify the steps that belong in a deployment plan and how the steps are configured.
ποΈ Create Custom Validation Rules
Custom validators are project-specific rules you create when built-in validators donβt meet your needs. Implement the validator in Java, package it as a JAR, and deploy it to the server.
ποΈ Use Predefined Steps in Rules
Deploy rules enable you to use XML or Jython to specify the steps that belong in a deployment plan and how the steps are configured. Several Deploy plugins include predefined rules that you can use when writing rules. For more information on rules, see Get started with rules.
ποΈ Use Step Macros
You can define new step primitives by using predefined step primitives such as jython and os-script. These are called step macros. After you define a step macro, you can refer to it by name, as you refer to a predefined step. You can reuse built-in steps and customize them for your system. Step macros can include one or more parameters of any valid Deploy type.
ποΈ Use a Script to Execute Commands
This topic provides information on executing commands as part of a deployment using Deploy. By creating a new deployable type and defining behaviors in the synthetic.xml and xl-rules.xml files, you can run scripts during deployment and rollback processes.
ποΈ Disable a Rule
This topic explains how to disable rules in Deploy by modifying the xl-rules.xml file