<@sys.workflowProcess id=id><#assign a=object/>
<#if a?has_content>
<@t.page "title"/>:
${(a.title)!}
<@t.page "workflow"/>:
<@sys.workflow id=a.workflowId;workflow>${workflow.name!}
<@t.page "step"/>:
<@sys.workflowStep id=a.stepId;step>${step.name!}
<@t.page "workflow"/>

<@t.page "start"/>
<@sys.workflowProcessHistoryList processId=id pageSize=100> <#list page.list as a> <@t.merge 'stepIds' a.stepId!/> <@t.merge 'userIds' a.userId!/> <@sys.workflowStep ids=t.stepIds!><#assign stepMap=map!/> <@sys.user ids=t.userIds!><#assign userMap=map!/> <#assign sort=-1/> <#list page.list as a>
${(stepMap[a.stepId?string].name)!t.pageMessage('page.disabled')}
${(userMap[a.userId?string].nickname)!}:${a.reason!}
<#assign sort=(stepMap[a.stepId?string].sort)!-1/> <@sys.workflowStepList workflowId=a.workflowId sort=sort pageSize=100> <#list list as step>
${step.name}
<#if step.roleId?has_content> <@t.page 'role'/>:<@sys.role id=step.roleId;role>${role.name} <#elseif step.deptId?has_content> <@t.page 'dept'/>:<@sys.dept id=step.deptId;dept>${dept.name} <#elseif step.userId?has_content> <@t.page 'user'/>:<@sys.user id=step.userId;user>${user.nickname}

<@t.page "end"/>
<@t.page "operate"/>:
<@t.page "comment"/>: