Product: OnProductCreate
Invoked when the product is created (may be from a Product Schedule, Product Generator, Scripting or by the User).
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Note: This event is subscribed to via the SubscribeAll global function. As product components are transient, using the ‘Subscribe’ method will result in an error.
Event
void xxxxxxxxxxxxxxxxx (product: Product, source: object);
Parameters
Name | Type | Description |
---|---|---|
product | Product | The product object created |
source | Object | The source object that created the product (or null). Can be either the Product Generator object or null for Product Schedule, Script and User sources. |