Process Definition not getting triggered for all the records created/updated from a scheduler job

Hello Group,

I am trying to trigger a Process Definition on multiple records  from a scheduler job. Tried using the recommendation provided in developer guide by calling the method to drop 'triggered_starts' registry, without any luck.

use Sugarcrm\Sugarcrm\ProcessManager\Registry;
//custom code
Registry\Registry::getInstance()->drop('triggered_starts');
$bean->save();

It was noticed that, even in case of MassUpdate & Bulk API call the SugarBPM is getting executed only on a single record and not on all the Bean saves.

Any suggestions on how to trigger the same Process Definition on all Bean saves in a single PHP process.

Thanks.

 

Parents Reply Children