ADSJob class

ConditionType property

    Arcana Scheduler Help

The ConditionType property allows you to set a condition that determines whether the job will run at its scheduled time.

Data Type

ADSConditionType enumeration

Syntax

 

C++

job->get_ConditionType(ADSConditionType *value)
job
->
put_ConditionType(ADSConditionType value)

VB

job.ConditionType

Values

This property may be set to any one of the valid ADSConditionType values.

Remarks

The ConditionType, ConditionTarget, and TriggerCondition properties together determine what condition is placed on job execution:

 

ConditionType

ConditionTarget

TriggerCondition

Result

ADS_CONDITION_NONE

N/A

N/A

The job executes as scheduled, with no conditions.

ADS_CONDITION_FILE

Specifies a complete path and file name, or a pattern (using wildcards).

ADS_TARGET_TRUE

The job executes only if a file matching the specified path and name (or pattern) exists.

ADS_CONDITION_FILE

Specifies a complete path and file name, or a pattern (using wildcards).

ADS_TARGET_FALSE

The job executes only if a file matching the specified path and name (or pattern) does not exist.

ADS_CONDITION_PROCESS

Specifies the name of the executable (e.g., notepad.exe).

ADS_TARGET_TRUE

The job executes only if the specified process is running.

ADS_CONDITION_PROCESS

Specifies the name of the executable (e.g., notepad.exe).

ADS_TARGET_FALSE

The job executes only if the specified process is not running.