static function getMap()
{
return [
'ID' => [
'data_type' => 'string',
'primary' => true,
],
'MODULE_ID' => [
'data_type' => 'string',
'required' => true,
],
'ENTITY' => [
'data_type' => 'string',
'required' => true,
],
'DOCUMENT_TYPE' => [
'data_type' => 'string',
'required' => true,
],
'DOCUMENT_CATEGORY_ID' => [
'data_type' => 'integer',
],
'MODE' => [
'data_type' => 'integer',
'required' => true,
],
'TITLE' => [
'data_type' => 'string',
'title' => Loc::getMessage('BIZPROC_DEBUGGER_SESSION_ENTITY_DEBUGGER_SESSION_FIELD_TITLE'),
'required' => false,
'validation' => fn () => [new LengthValidator(1, 255)],
],
'STARTED_BY' => [
'data_type' => 'integer',
'required' => true,
],
'STARTED_DATE' => [
'data_type' => 'datetime',
'required' => true,
'default_value' => function()
{
return new BitrixMainTypeDateTime();
},
],
'FINISHED_DATE' => [
'data_type' => 'datetime',
],
'ACTIVE' => [
'data_type' => 'boolean',
'required' => true,
'values' => ['N', 'Y'],
],
'FIXED' => [
'data_type' => 'boolean',
'required' => true,
'values' => ['N', 'Y'],
'default_value' => 'N',
],
'DEBUGGER_STATE' => [
'data_type' => 'integer',
'default_value' => -1,
],
new OneToMany(
'DOCUMENTS',
DebuggerSessionDocumentTable::class,
'SESSION'
),
(new OneToMany(
'WORKFLOW_CONTEXTS',
DebuggerSessionWorkflowContextTable::class,
'SESSION',
))->configureJoinType(Join::TYPE_LEFT),
];
}