operation init

Defines the component behavior when a component instance is created with newinstance (or by activate when newinstance is executed implicitly).

operation init
   {variablesBlock}
   Your code here ...
end

Use

All components.

Description

If an Init operation has been defined in the component, it is executed before the new instance is created. Since the new instance does not really exist at this point, the Init operation should not perform any action that involves the new instance. For example, it should not use deleteinstance on the instance or activate for an operation contained in the instance.

Related Topics