$sequenceId = Uuid::
randomHex();
$this->flowRepository->
create([[ 'name' => 'Customer login',
'eventName' => CustomerLoginEvent::EVENT_NAME,
'priority' => 1,
'active' => true,
'sequences' =>
[ [ 'id' =>
$sequenceId,
'parentId' => null,
'ruleId' => null,
'actionName' => SetCustomerCustomFieldAction::
getName(),
'position' => 1,
'config' =>
[ 'entity' =>
$entity,
'customFieldId' =>
$customFieldId,
'customFieldText' =>
$customFieldName,
'customFieldValue' =>
$updateData,
'customFieldSetId' => null,
'customFieldSetText' => null,
'option' =>
$option,
],
],
],