Platform Core .NET Assemblies API
ScheduleImmediateProcessJob Method
See Also  Send Feedback
Terrasoft.Core.Scheduler Namespace > AppScheduler Class : ScheduleImmediateProcessJob Method
jobName
Job name.
jobGroup
The name of the group to which the job belongs.
processName
Process name.
workspaceName
Workspace in which the process must be started.
userName
The user on whose behalf the process will be started.
parameters
The parameters that will be passed to the process.
isSystemUser
System user flag. If true, Job will run on behalf of the user obtained from "System operations user" system setting.

Glossary Item Box

Plans a task for immediate one-time start of process.

Syntax

 
C#
 
 

Parameters

jobName
Job name.
jobGroup
The name of the group to which the job belongs.
processName
Process name.
workspaceName
Workspace in which the process must be started.
userName
The user on whose behalf the process will be started.
parameters
The parameters that will be passed to the process.
isSystemUser
System user flag. If true, Job will run on behalf of the user obtained from "System operations user" system setting.

Remarks

In contrast to TriggerJob(String,String,String,String,String,IDictionary<String,Object>,Boolean), the ScheduleImmediateProcessJob schedules job with next fire time set to now, while TriggerJob(String,String,String,String,String,IDictionary<String,Object>,Boolean) triggers job immediately. As a result, delay between ScheduleImmediateProcessJob call and actual trigger fire time can be greater than one after calling TriggerJob(String,String,String,String,String,IDictionary<String,Object>,Boolean).

If job with the same name within the same group already exists it will be recreated.

If trigger can not be fired immediately it will be fired as soon as possible.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.