1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
tasktable.php
См. документацию.
1<?php
2
3namespace Bitrix\Bizproc\Workflow\Task;
4
5use Bitrix\Bizproc\Workflow\Entity\WorkflowInstanceTable;
6use Bitrix\Bizproc\Workflow\Entity\WorkflowStateTable;
7use Bitrix\Bizproc\Workflow\Task;
8use Bitrix\Main\Entity;
9use Bitrix\Main\NotImplementedException;
10use Bitrix\Main\ORM\Data\DataManager;
11use Bitrix\Main\ORM\Fields\ArrayField;
12use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
13use Bitrix\Main\ORM\Query\Join;
14
32{
33 public static function getTableName(): string
34 {
35 return 'b_bp_task';
36 }
37
38 public static function getObjectClass()
39 {
40 return Task::class;
41 }
42
43 public static function getMap(): array
44 {
45 return [
46 (new Entity\IntegerField('ID'))
47 ->configurePrimary()
48 ->configureAutocomplete(),
49
50 (new Entity\StringField('WORKFLOW_ID'))
51 ->addValidator(new LengthValidator(1, 32)),
52
53 (new Entity\StringField('ACTIVITY'))
54 ->addValidator(new LengthValidator(1, 128)),
55
56 (new Entity\StringField('ACTIVITY_NAME'))
57 ->addValidator(new LengthValidator(1, 128)),
58
59 (new Entity\DatetimeField('CREATED_DATE'))->configureNullable(),
60
61 (new Entity\DatetimeField('MODIFIED')),
62
63 (new Entity\DatetimeField('OVERDUE_DATE'))
64 ->configureNullable(),
65
66 (new Entity\StringField('NAME'))
67 ->addValidator(new LengthValidator(1, 128)),
68
69 (new Entity\TextField('DESCRIPTION'))
70 ->configureNullable(),
71
72 (new ArrayField('PARAMETERS'))
73 ->configureSerializeCallback(static fn($value) => serialize($value))
74 ->configureUnserializeCallback(
75 static fn($value) => unserialize(
76 $value,
77 [
78 'allowed_classes' => [
79 \Bitrix\Bizproc\BaseType\Value\Date::class,
80 \Bitrix\Bizproc\BaseType\Value\DateTime::class,
81 \Bitrix\Main\Type\Date::class,
82 \Bitrix\Main\Type\DateTime::class,
83 \DateTime::class,
84 \DateTimeZone::class,
85 \Bitrix\Main\Web\Uri::class,
86 ]
87 ]
88 )
89 )
90 ,
91
92 (new Entity\IntegerField('STATUS'))
93 ->configureDefaultValue(0),
94
95 (new Entity\EnumField('IS_INLINE'))
96 ->configureValues(['Y', 'N'])
97 ->configureDefaultValue('N'),
98
99 (new Entity\IntegerField('DELEGATION_TYPE'))
100 ->configureDefaultValue(0),
101
102 (new Entity\StringField('DOCUMENT_NAME'))
103 ->addValidator(new LengthValidator(1, 255)),
104
105 new \Bitrix\Main\ORM\Fields\Relations\Reference(
106 'WORKFLOW_STATE',
107 WorkflowStateTable::class,
108 Join::on('this.WORKFLOW_ID', 'ref.ID')
109 ),
110 new \Bitrix\Main\ORM\Fields\Relations\OneToMany(
111 'TASK_USERS',
112 TaskUserTable::class,
113 'USER_TASKS'
114 ),
115 new \Bitrix\Main\ORM\Fields\Relations\Reference(
116 'WORKFLOW_INSTANCE',
117 WorkflowInstanceTable::class,
118 Join::on('this.WORKFLOW_ID', 'ref.ID')
119 ),
120 ];
121 }
122
128 public static function add(array $data)
129 {
130 throw new NotImplementedException('Use CBPTaskService class.');
131 }
132
139 public static function update($primary, array $data)
140 {
141 throw new NotImplementedException('Use CBPTaskService class.');
142 }
143
149 public static function delete($primary)
150 {
151 throw new NotImplementedException('Use CBPTaskService class.');
152 }
153}
static add(array $data)
Определения tasktable.php:128
static getObjectClass()
Определения tasktable.php:38
static update($primary, array $data)
Определения tasktable.php:139
Определения task.php:24
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения base.php:3
Определения ufield.php:9
Определения collection.php:2
Определения cookie.php:3