Rule when a product is added.
I would like to add a rule when a new product is added. I have to validate from a web service for specific product types if the attributes specified are valid or not.
'label'=>t('On New Product Create'),
'product'=>array('type'=>'commerce-product','label'=>t('On New Product Create..'))
I plan to use the rules module to write my own action .. how ever I am unable to code the write type in rules.inc file as well unable to select the right data selector