Home Manual Reference Source Test Repository
public class | source

ExecuteEveryBuilder

Defines the builder to configure a period of operation. By this builder you can select period by day, week, month, year.

Constructor Summary

Public Constructor
public

constructor(parent: BaseOperationBuilder, date: Date, periodicityName: string)

Constructor

Member Summary

Public Members
public

week: *

public

year: *

Method Summary

Public Methods
public

Every day at time defined will be the pattern

public

month(months: array): ByMonth

Each month at time and day defined will be the pattern

Public Constructors

public constructor(parent: BaseOperationBuilder, date: Date, periodicityName: string) source

Constructor

Params:

NameTypeAttributeDescription
parent BaseOperationBuilder
  • nullable: false

this is a operationBaseBuilder.

date Date
  • nullable: false

Date when operation will be executed

periodicityName string

Name associated to periodicity

Public Members

public week: * source

public year: * source

Public Methods

public day(): BaseOperationBuilder source

Every day at time defined will be the pattern

public month(months: array): ByMonth source

Each month at time and day defined will be the pattern

Params:

NameTypeAttributeDescription
months array

months on will be execute the operation

Return:

ByMonth

Throw:

Error

throw error when months is not typeof Array

Error

throw error when any month is not found into MONTHS_ENUM