是否可以在“查看更多操作”旁边的工作流程任务中添加“编辑属性”等其他操作?
我已经介绍了这个Digital Signing Alfresco plugin,我会让用户在不离开当前任务的情况下签署文件。
修改
Alfresco5.0d
答案 0 :(得分:3)
创建自己的自定义控件。 复制默认控件 org \ alfresco \ components \ form \ controls \ workflow \ packageitems.ftl ,然后将按钮添加到其中。
导入部分如下:
<#if packageItemActionGroup == "read_package_item_actions" || packageItemActionGroup == "edit_package_item_actions">
<#local actions = actions + [viewMoreAction]>
<#elseif packageItemActionGroup == "remove_package_item_actions" || packageItemActionGroup == "start_package_item_actions" || packageItemActionGroup == "edit_and_remove_package_item_actions">
<#local actions = actions + [viewMoreAction]>
<#local allowRemoveAllAction = true>
<#local allowRemoveAction = true>
<#elseif packageItemActionGroup >
<#else>
<#local actions = actions + [viewMoreAction]>
</#if>
最简单的方法是更改以下行:
<#local viewMoreAction = { "name": "view_more_actions", "label": "form.control.object-picker.workflow.view_more_actions", "link": documentLinkResolver }>
并在 view_more_actions 旁边或之前添加新的自定义操作。