General.ScheduledDocumentEvents Entity
Namespace: General
Contains postponed events, which will be executed later. Usually these are large number of recalculation events, resulting from other events. For example, releasing a cost correction, publishes postponed events for all affected documents. Entity: Gen_Scheduled_Document_Events
Default Visualization
Default Display Text Format:
{Id}: {SourceDocumentId}
Default Search Members:
__
Aggregate
An aggregate is a cluster of domain objects that can be treated as a single unit.
Aggregate Tree
Attributes
Name | Type | Description |
---|---|---|
Cancelled | boolean | When true, specifies that this document event has been cancelled (either manually or in respect to another event) and will not be executed. Required Default(false) Filter(eq) |
CreationTime | datetime | Date and time when the ScheduledDocumentEvent was created. Required Default(Now) ReadOnly |
DisplayText | string | Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object. |
DocumentEvent | string (254) | The type of the document event that is scheduled to be processed. Required ReadOnly |
Id | guid | |
LastProcessStatus | string (max) nullable | Status/information of the last attemp to process the event. Usually shows the cause in case of failure. ReadOnly |
LastProcessTime | datetime nullable | The time of the last attempt to process the event. ReadOnly |
ObjectVersion | int32 | The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking. |
Processed | boolean | Indicates wheather the event is already processed or not. Required Default(false) Filter(eq) ReadOnly |
State | State | The state of the document for which the event will be processed. Required ReadOnly |
References
Name | Type | Description |
---|---|---|
Document | Documents | The document for which the event will be processed. Required Filter(multi eq) ReadOnly |
SourceDocument | Documents | The document that has caused this event to be scheduled. Required Filter(multi eq) ReadOnly |
Attribute Details
Cancelled
When true, specifies that this document event has been cancelled (either manually or in respect to another event) and will not be executed. Required
Default(false)
Filter(eq)
Type: boolean
Category: System
Supported Filters: Equals
Supports Order By: False
Default Value: False
CreationTime
Date and time when the ScheduledDocumentEvent was created. Required
Default(Now)
ReadOnly
Type: datetime
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Default Value: CurrentDateTime
DisplayText
Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object.
Type: string
Category: Calculated Attributes
Supported Filters: NotFilterable
Supports Order By: ****
DocumentEvent
The type of the document event that is scheduled to be processed. Required
ReadOnly
Type: string (254)
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Maximum Length: 254
Id
Type: guid
Indexed: True
Category: System
Supported Filters: Equals, EqualsIn
Default Value: NewGuid
LastProcessStatus
Status/information of the last attemp to process the event. Usually shows the cause in case of failure. ReadOnly
Type: string (max) nullable
Category: System
Supported Filters: NotFilterable
Supports Order By: False
Maximum Length: 2147483647
LastProcessTime
The time of the last attempt to process the event. ReadOnly
Type: datetime nullable
Category: System
Supported Filters: NotFilterable
Supports Order By: False
ObjectVersion
The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking.
Type: int32
Category: Extensible Data Object
Supported Filters: NotFilterable
Supports Order By: ****
Processed
Indicates wheather the event is already processed or not. Required
Default(false)
Filter(eq)
ReadOnly
Type: boolean
Category: System
Supported Filters: Equals
Supports Order By: False
Default Value: False
State
The state of the document for which the event will be processed. Required
ReadOnly
Type: State
Category: System
Allowed values for the State
(General.ScheduledDocumentEvents.md#state) data attribute
Allowed Values (General.ScheduledDocumentEventsRepository.State Enum Members)
Value | Description |
---|---|
New | New value. Stored as 0. Database Value: 0 Model Value: 0 Domain API Value: 'New' |
Corrective | Corrective value. Stored as 5. Database Value: 5 Model Value: 5 Domain API Value: 'Corrective' |
Planned | Planned value. Stored as 10. Database Value: 10 Model Value: 10 Domain API Value: 'Planned' |
FirmPlanned | FirmPlanned value. Stored as 20. Database Value: 20 Model Value: 20 Domain API Value: 'FirmPlanned' |
Released | Released value. Stored as 30. Database Value: 30 Model Value: 30 Domain API Value: 'Released' |
Completed | Completed value. Stored as 40. Database Value: 40 Model Value: 40 Domain API Value: 'Completed' |
Closed | Closed value. Stored as 50. Database Value: 50 Model Value: 50 Domain API Value: 'Closed' |
Supported Filters: NotFilterable
Supports Order By: False
Reference Details
Document
The document for which the event will be processed. Required
Filter(multi eq)
ReadOnly
Type: Documents
Category: System
Supported Filters: Equals, EqualsIn
SourceDocument
The document that has caused this event to be scheduled. Required
Filter(multi eq)
ReadOnly
Type: Documents
Category: System
Supported Filters: Equals, EqualsIn
API Methods
Methods that can be invoked in public APIs.
GetAllowedCustomPropertyValues
Gets the allowed values for the specified custom property for this entity object. If supported the result is ordered by property value. Some property value sources do not support ordering - in that case the result is not ordered.
Return Type: Collection Of CustomPropertyValue
Declaring Type: EntityObject
Domain API Request: GET
Parameters
customPropertyCode
The code of the custom property
Type: stringsearch
The search text - searches by value or description. Can contain wildcard character %.
Type: string
Optional: True
Default Value: nullexactMatch
If true the search text should be equal to the property value
Type: boolean
Optional: True
Default Value: FalseorderByDescription
If true the result is ordered by Description instead of Value. Note that ordering is not always possible.
Type: boolean
Optional: True
Default Value: Falsetop
The top clause - default is 10
Type: int32
Optional: True
Default Value: 10skip
The skip clause - default is 0
Type: int32
Optional: True
Default Value: 0
Business Rules
None
Front-End Business Rules
None
API
Domain API Query: https://demodb.my.erp.net/api/domain/odata/General_ScheduledDocumentEvents?$top=10
Domain API Query Builder: https://demodb.my.erp.net/api/domain/querybuilder#General_ScheduledDocumentEvents?$top=10