首页 > 代码库 > SF :Salesforce中,关于审批的一些对象
SF :Salesforce中,关于审批的一些对象
SF中,与审批有关的对象:ProcessInstance, ProcessInstanceHistory, ProcessInstanceStep, ProcessInstanceWorkitem, ProcessNode and TargetObject.
ProcessInstanceHistory与ProcessInstanceStep对象中的Fields基本相同
ProcessInstanceHistory:isPending, RemindersSent, TargetObjectId
ProcessInstanceStep:StepNodeId
每一轮完整的审批会生成一条相应的ProcessInstance记录,审批中的每一次审批历史会生成相应的ProcessInstanceHistory记录。
PorcessInstanceHistory:
被分配人 =======> OriginalActorId
实际批准人 =======> ActorId
审批日期 =======> SystemModstamp
审批状态 =======> StepStatus
审批整体状态 =======> 与之相对应的ProcessInstance上的Status
审批留言 =======> Comments
审批目标对象 =======> TargetObjectId
注:Approval Status:(ProcessInstance:Status, ProcessInstanceHistory:StepStatus)
中文名 API Name Label
已批准 =====>Approved =====> Approved
故障 =====>Fault =====> Fault
暂停 =====>Held =====> Hold
无响应 =====>NoResponse =====> NoResponse
待处理 =====>Pending =====> Pending
已重新分配=====>Reassigned =====> Reassigned
已拒绝 =====>Rejected =====> Rejected
已调回 =====>Removed =====> Recalled
已提交 =====>Started =====> Submitted