Show / Hide Table of Contents

Class BatchTaskRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the BatchTask table.

Inheritance
Object
BatchTaskRecordData
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class BatchTaskRecordData
Remarks

Please use this class instead of a full BatchTaskRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding BatchTaskTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

BatchTaskRecordData()

Declaration
public BatchTaskRecordData()

Fields

BatchTaskDefinitionId

Batch task definition, which is populated from code attributes

Declaration
public int BatchTaskDefinitionId
Field Value
Type Description
Int32

BatchTaskId

Primary key

Declaration
public int BatchTaskId
Field Value
Type Description
Int32

DbTag

Database tag that this task applies to, to ensure tasks are execute on the correct database only

Declaration
public string DbTag
Field Value
Type Description
String

Description

Description of task (for monitoring and debugging)

Declaration
public string Description
Field Value
Type Description
String

DetailsRecord

Optional record containing further details that will not fit in the standard request/response fields

Declaration
public int DetailsRecord
Field Value
Type Description
Int32

DetailsTable

Optional table containing further details that will not fit in the standard request/response fields

Declaration
public short DetailsTable
Field Value
Type Description
Int16

FileName

The filename related to the batchtask.

Declaration
public string FileName
Field Value
Type Description
String

LastStarted

When was this job last started

Declaration
public DateTime LastStarted
Field Value
Type Description
DateTime

ProgressDescription

Descriptive text for the current stage

Declaration
public string ProgressDescription
Field Value
Type Description
String

ProgressPercent

Task progress, in percent of estimated total

Declaration
public short ProgressPercent
Field Value
Type Description
Int16

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
DateTime

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
Int32

Request

The batch request, specifying what to do

Declaration
public string Request
Field Value
Type Description
String

Response

The response from the batch task processor

Declaration
public string Response
Field Value
Type Description
String

StartCount

Number of times this batch task has been started (0 for tasks that have never been executed)

Declaration
public int StartCount
Field Value
Type Description
Int32

State

0=Unknown; 1=New; 2=Assigned; 3=Started; 4=Succeeded; 5=Failed

Declaration
public int State
Field Value
Type Description
Int32

Updated

'heartbeat' that is updated once a minute by the batch task process in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
DateTime

UpdatedAssociateId

'heartbeat' that is updated once a minute by the batch task process

Declaration
public int UpdatedAssociateId
Field Value
Type Description
Int32

UpdatedCount

'heartbeat' that is updated once a minute by the batch task process

Declaration
public short UpdatedCount
Field Value
Type Description
Int16

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
BatchTaskRecordDataExtensions.ToInsert(BatchTaskRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top