case 4357
This commit is contained in:
@@ -401,7 +401,13 @@ namespace AyaNova.Biz
|
||||
case JobType.BatchCoreObjectOperation:
|
||||
//batch op, hand off to biz object to deal with
|
||||
//note, convention is that there is an idList in job.jobinfo json if preselected else it's all objects of type
|
||||
o = (IJobObject)BizObjectFactory.GetBizObject(job.AType, ct, 1, AuthorizationRoles.BizAdmin);
|
||||
|
||||
//case 4357
|
||||
var tempObject=BizObjectFactory.GetBizObject(job.AType, ct, 1, AuthorizationRoles.BizAdmin);
|
||||
if(! (tempObject is IJobObject)){
|
||||
throw new System.NotSupportedException($"ProcessJobAsync type {job.JobType.ToString()} is not supported for Batch operations");
|
||||
}
|
||||
o = (IJobObject)tempObject;
|
||||
break;
|
||||
case JobType.RenderReport:
|
||||
o = (IJobObject)BizObjectFactory.GetBizObject(AyaType.Report, ct, 1, AuthorizationRoles.BizAdmin);
|
||||
|
||||
Reference in New Issue
Block a user