IJobApi.UpdateJobInfo Method
|
Update the existing job scheduler with the new workflow info
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxvoid UpdateJobInfo(
string id,
JobInfo job
)
Parameters
- id String
- The Job Id
- job JobInfo
- The TriggerWorkflowJobInfo
Examplevar jobApi = ctx.Use<IJobApi>();
var jobId = "theJobId";
var jobInfo = new TriggerWorkflowJobInfo(){
WorkflowDefinitionName="NewWorkflowDefinitionName",
Priority=Casewhere.Models.QueuePriority.Normal
};
jobApi.UpdateJobInfo(jobId, jobInfo);
See Also