IJob ApiUpdate Job Info Method
Update the existing job scheduler with the new workflow info
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
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);