任務詳細資訊頁包含有關任務及其進程的資訊。 但是,您可以自定義任務詳細資訊頁以添加或刪除資訊。
您可以將下列資訊添加到任務詳細資訊頁:
要自定義任務詳細資訊頁,請執行以下操作:
若要顯示任何其他資訊,請在todo
block > details
block > app
block > [ required
block ]向translation.json
檔案中添加相應的鍵值對。
[ required
block]引用了可用塊,如任務資訊的任務塊、進程資訊的進程塊和待定任務資訊的當前待定任務塊。
例如,要在任務詳細資訊頁中添加有關「所需工藝路線選擇」的資訊,可以在任務塊中添加以下鍵值對:
"todo" : {
.
.
.
"details" : {
.
.
"task" : {
.
.
"RouteSelectionRequired" : "Route Selection Required"
}
}
}
為所有支援的語言新增對應的索引鍵值配對。
將/libs/ws/js/runtime/templates/taskdetails.html
複製到/apps/ws/js/runtime/templates/taskdetails.html
。
將新資訊添加到/apps/ws/js/runtime/templates/taskdetails.html
。 例如:
<div class="detailsContainer">
.
.
<ul>
.
.
<li>
<label for="routeSelectionRequired" title="<%= $.t('todo.details.task.RouteSelectionRequired')%>"><%= $.t('todo.details.task.RouteSelectionRequired')%></label>
<div>
<span id="routeSelectionRequired"><%= isRouteSelectionRequired != null ? isRouteSelectionRequired : ''%></span>
</div>
</li>
.
.
</ul>
</div>
開啟/apps/ws/js/registry.js進行編輯。
搜尋並將text!/lc/libs/ws/js/runtime/templates/taskdetails.html
取代為text!/lc/apps/ws/js/runtime/templates/taskdetails.html
。
要使用在AEM Forms工作區的Start Process頁簽中建立的任務自定義任務詳細資訊頁,請將新資訊添加到/apps/ws/js/runtime/templates/startprocess.html
。
若要為詳細資訊頁面中新增的資訊新增樣式,請使用Workspace自訂中的使用者介面changes區段來修改CSS檔案。