izzum\statemachine\persistence\Adapter::getEntityIds PHP Method

getEntityIds() abstract public method

This method will be highly useful when you want to select a batch of entities to feed to the statemachine, for example in a cron job or a message queue.
abstract public getEntityIds ( string $machine, string $state = null ) : string[]
$machine string the name of the machine
$state string optional: if provided, only those entities in the specific state
return string[] an array of entity_id's
    public abstract function getEntityIds($machine, $state = null);

Usage Example

 public function getEntityIds($machine, $state = null)
 {
     return $this->writer->getEntityIds($machine, $state);
 }