Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995415
long-running-processes.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
955 B
Referenced Files
None
Subscribers
None
long-running-processes.ts
View Options
import
Collection
from
"../../chip-types/collection.js"
;
import
{
FieldTypes
,
Policies
}
from
"../../main.js"
;
import
Matches
from
"../base-chips/special_filters/matches.js"
;
export
default
class
LongRunningProcesses
extends
Collection
{
name
=
"long_running_processes"
;
named_filters
=
{
access_mode_is_user
:
new
Matches
(
"long_running_processes"
,
{
access_mode
:
"user"
,
}),
};
fields
=
{
started
:
new
FieldTypes
.
DateTime
(),
name
:
new
FieldTypes
.
Text
(),
owner
:
new
FieldTypes
.
SingleReference
(
"users"
),
events
:
new
FieldTypes
.
ReverseSingleReference
({
referencing_field
:
"process"
,
referencing_collection
:
"long_running_process_events"
,
}),
state
:
new
FieldTypes
.
Enum
([
"running"
,
"finished"
,
"error"
]),
access_mode
:
new
FieldTypes
.
Enum
([
"user"
,
"super"
]),
};
defaultPolicy
=
new
Policies
.
If
(
"long_running_processes"
,
"access_mode_is_user"
,
new
Policies
.
UserReferencedInField
(
"owner"
),
new
Policies
.
Super
()
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 03:56 (11 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556806
Default Alt Text
long-running-processes.ts (955 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment