Interface ICollectorRuntime
Runtime for the collector function CollectorFunction
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Runtime
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public interface ICollectorRuntime : IPayrunRuntime, IPayrollRuntime, IRuntime
Properties
CollectMode
The collect mode
Declaration
string CollectMode { get; }
Property Value
| Type | Description |
|---|---|
| string |
CollectorAverage
The average of the collected values
Declaration
decimal CollectorAverage { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorCount
Collected values count
Declaration
decimal CollectorCount { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorGroups
The collector groups
Declaration
string[] CollectorGroups { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
CollectorMaxResult
The maximum allowed value
Declaration
decimal? CollectorMaxResult { get; }
Property Value
| Type | Description |
|---|---|
| decimal? |
CollectorMaximum
The maximum collected values
Declaration
decimal CollectorMaximum { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorMinResult
The minimum allowed value
Declaration
decimal? CollectorMinResult { get; }
Property Value
| Type | Description |
|---|---|
| decimal? |
CollectorMinimum
The minimum collected values
Declaration
decimal CollectorMinimum { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorName
The collector name
Declaration
string CollectorName { get; }
Property Value
| Type | Description |
|---|---|
| string |
CollectorRange
The range of the collected values
Declaration
decimal CollectorRange { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorResult
The current collector result
Declaration
decimal CollectorResult { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorSummary
The summary of the collected values
Declaration
decimal CollectorSummary { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
CollectorThreshold
The threshold value
Declaration
decimal? CollectorThreshold { get; }
Property Value
| Type | Description |
|---|---|
| decimal? |
Negated
Negated collector result
Declaration
bool Negated { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
AddCustomResult(string, decimal, DateTime, DateTime, List<string>, Dictionary<string, object>, int?, string)
Add a custom collector result
Declaration
void AddCustomResult(string source, decimal value, DateTime startDate, DateTime endDate, List<string> tags, Dictionary<string, object> attributes, int? valueType, string culture)
Parameters
| Type | Name | Description |
|---|---|---|
| string | source | The value source |
| decimal | value | The period value |
| DateTime | startDate | The start date |
| DateTime | endDate | The end date |
| List<string> | tags | The result tags |
| Dictionary<string, object> | attributes | The collector result attributes |
| int? | valueType | The result value type (numeric), default is the collector value type |
| string | culture | The result culture |
GetCollectorAttribute(string)
Get attribute value
Declaration
object GetCollectorAttribute(string attributeName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | attributeName | Name of the attribute |
Returns
| Type | Description |
|---|---|
| object | The collector attribute value |
GetCollectorValue(string)
Gets the collector value
Declaration
decimal GetCollectorValue(string collectorName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | collectorName | Name of the collector |
Returns
| Type | Description |
|---|---|
| decimal | The collector value |
GetResultAttribute(string)
Gets the result attribute value
Declaration
object GetResultAttribute(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The attribute name |
Returns
| Type | Description |
|---|---|
| object | The attribute value |
GetResultTags()
Get the wage type result tags
Declaration
List<string> GetResultTags()
Returns
| Type | Description |
|---|---|
| List<string> | The wage type result tags |
Reset()
Resets the collector to his initial state
Declaration
void Reset()
ScheduleRetroPayrun(DateTime, List<string>)
Schedule a retro payrun
Declaration
void ScheduleRetroPayrun(DateTime scheduleDate, List<string> resultTags)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | scheduleDate | The payrun schedule date, must be before the current period |
| List<string> | resultTags | The result tags |
SetResultAttribute(string, object)
Sets the result attribute value
Declaration
void SetResultAttribute(string name, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The attribute name |
| object | value | The attribute value |
SetResultTags(List<string>)
Set the wage type result tags
Declaration
void SetResultTags(List<string> tags)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | tags | The wage type result tags |