Click or drag to resize

IJobApi.UpdateJobInfo Method

Update the existing job scheduler with the new workflow info

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void UpdateJobInfo(
	string id,
	JobInfo job
)

Parameters

id  String
The Job Id
job  JobInfo
The TriggerWorkflowJobInfo
Example
C#
var jobApi = ctx.Use<IJobApi>();
var jobId = "theJobId";
var jobInfo = new TriggerWorkflowJobInfo(){
    WorkflowDefinitionName="NewWorkflowDefinitionName",
    Priority=Casewhere.Models.QueuePriority.Normal
};
jobApi.UpdateJobInfo(jobId, jobInfo);
See Also