generateFlowName example

$eventNames = [];

        for ($i = 0; $i < $count; ++$i) {
            /** @var BusinessEventDefinition $event */
            $event = $this->faker->randomElement($events);

            $eventNames[$event->getName()] = \array_key_exists($event->getName()$eventNames) ? ($eventNames[$event->getName()] + 1) : 1;

            $flow = [
                'id' => Uuid::randomHex(),
                'name' => $this->generateFlowName($event->getName()$eventNames[$event->getName()]),
                'eventName' => $event->getName(),
                'priority' => $i + 1,
                'active' => true,
            ];

            $sequenceTreeCount = random_int(1, $maxSequenceTree);

            $sequences = new FlowSequenceCollection();

            for ($t = 0; $t < $sequenceTreeCount; ++$t) {
                $position = 1;

                
Home | Imprint | This part of the site doesn't use cookies.