2022 June Release

Actions of COOAT@1.1001 Permanent link for this heading

Return Type

Signature

void

AttrTasksGet(
  AttributeDefinition attrdef,
  ref any value,
  out optional boolean volatile,
  out optional boolean volatiletx)

void

ConfigureATTask(
  ATConfiguredTask automatedtasksettings)

void

GetInstance(
  out interface instance,
  interface worker)

void

RunTask()

void

RunTaskList(
  out integer delaytill,
  out integer waiting,
  out integer processed,
  boolean shutdown,
  out string[] taskerrors)

void

ScheduleLocal(
  object[] objects,
  object action,
  optional object resource)

void

ScheduleSelectedTask(
  optional integer unused1,
  optional integer unused2)

void

ScheduleTask(
  object tasklistsource,
  object action,
  datetime startat,
  boolean calledit,
  optional object resource,
  out optional object task)

void

Shutdown()

void

Signal()

void

Startup(
  string servicename)

void

UpdateBulkOperationBasicObject(
  BulkOperation bulkoperation)


COOAT@1.1001:AttrTasksGet Permanent link for this heading

Gets the list of tasks from the property Tasks (attasks). The default implementation for this action is empty.

void COOAT@1.1001:AttrTasksGet(
  AttributeDefinition attrdef,
  ref any value,
  out optional boolean volatile,
  out optional boolean volatiletx)

Name

Description

attrdef

value

volatile

volatiletx

Additional Information


COOAT@1.1001:ConfigureATTask Permanent link for this heading

Action called during configure of the current domain to configure automated tasks

void COOAT@1.1001:ConfigureATTask(
  ATConfiguredTask automatedtasksettings)

Name

Description

automatedtasksettings

the settings to configure the

Additional Information


COOAT@1.1001:GetInstance Permanent link for this heading

Gets the instance of a dispatcher.

void COOAT@1.1001:GetInstance(
  out interface instance,
  interface worker)

Name

Description

instance

The dispatcher instance.

worker

The worker instance.

Additional Information


COOAT@1.1001:RunTask Permanent link for this heading

Executes the action (ataction) of the task on the target object (attarget). If no target object is specified, the task object is used.

void COOAT@1.1001:RunTask()

Additional Information


COOAT@1.1001:RunTaskList Permanent link for this heading

Executes the tasks in the task list.

void COOAT@1.1001:RunTaskList(
  out integer delaytill,
  out integer waiting,
  out integer processed,
  boolean shutdown,
  out string[] taskerrors)

Name

Description

delaytill

The number of seconds to wait until the next execution.

waiting

The number of waiting tasks.

processed

The number of processed tasks.

shutdown

If it is True, the service is stopped.

taskerrors

The errors occurred during the execution of the tasks.

Additional Information


COOAT@1.1001:ScheduleLocal Permanent link for this heading

Creates tasks without a task object and adds it to a queue. It executes the action for each element of the list. If an object is several times in the list, the action is executed only once on it. The tasks are created only in the memory of the AT service.

void COOAT@1.1001:ScheduleLocal(
  object[] objects,
  object action,
  optional object resource)

Name

Description

objects

The list of objects the action is executed for.

action

The action that is executed for each object in the list.

resource

The resource.

Additional Information


COOAT@1.1001:ScheduleSelectedTask Permanent link for this heading

Adds a new task to a task list and creates a new task object if necessary for each selected object. Calls the method ScheduleTask for each selected object. This method is specified to call the action for the selected objects only.

void COOAT@1.1001:ScheduleSelectedTask(
  optional integer unused1,
  optional integer unused2)

Name

Description

unused1

unused2

Additional Information


COOAT@1.1001:ScheduleTask Permanent link for this heading

Adds a new task to a task list and creates a new task object if necessary. If the object is a task object, it is added to the task list without creating a new task object.

void COOAT@1.1001:ScheduleTask(
  object tasklistsource,
  object action,
  datetime startat,
  boolean calledit,
  optional object resource,
  out optional object task)

Name

Description

tasklistsource

action

startat

calledit

If the value is True, the Property Editor tool is opened to edit the task object. The default value is True.

resource

The resource object. If there exists an entry in a resource list that defines values for the maximum number of threads and the maximum runtime, these values are used for the tasks. If no values are defined, the default values are used.

task

The created task.

Additional Information


COOAT@1.1001:Shutdown Permanent link for this heading

Stops the processing.

void COOAT@1.1001:Shutdown()

Additional Information


COOAT@1.1001:Signal Permanent link for this heading

Marks the task list as changed such that it is checked again for tasks to be executed. Calling this action is necessary only when you change a task that does exist in the task list and the execution of the action should be started immediately (with an average delay of 8 seconds instead of 30 seconds). Note that the current user needs the right to change the object. Besides a version is created automatically for each change by another user.

void COOAT@1.1001:Signal()

Additional Information


COOAT@1.1001:Startup Permanent link for this heading

Is called when the AT service is started. Define a postwrapper for this action, if you want to execute actions at service startup.

void COOAT@1.1001:Startup(
  string servicename)

Name

Description

servicename

The name of the AT service.

Additional Information


COOAT@1.1001:UpdateBulkOperationBasicObject Permanent link for this heading

void COOAT@1.1001:UpdateBulkOperationBasicObject(
  BulkOperation bulkoperation)

Name

Description

bulkoperation

Additional Information