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
  • Hello


    Can you clarify the Sugar version that you are running? 

    There is a documented defect on version 10.0.0 that could be related. 

    If that's the case you should consider upgrading or requesting a hotfix from Support as the defect was already fixed on version 10.1 +. 

    I hope this helps. 

    André

Reply
  • Hello


    Can you clarify the Sugar version that you are running? 

    There is a documented defect on version 10.0.0 that could be related. 

    If that's the case you should consider upgrading or requesting a hotfix from Support as the defect was already fixed on version 10.1 +. 

    I hope this helps. 

    André

Children