OnCopy Hook

Overview

Event fired before entity is copied.

Common Attributes

name

type

required

default value

description

class

string

yes

none

Name of the class defining hook.

method

string

yes

none

Name of the method defining hook.

Example

<onCopy class="com.sample.SampleHook" method="resetStatus" />

Hook method signature

public void hookName(final DataDefinition dataDefinition, final Entity entity) {
    // ...
}