A lifecycle action assigns actions to document state changes that are defined in a lifecycle policy. Actions are coded in a user-implemented JavaScript script or Java™ class, which must exist before creating a lifecycle action.