自定義進程實例清單

程式例項清單會顯示在AEM Forms工作區的「追蹤」標籤中。

在程式例項清單中,AEM Forms工作區會針對每個程式例項顯示該例項的某些屬性。 每個進程實例均可使用以下屬性。 這些屬性在進程實例元件模型中儲存為屬性,並可在其視圖和模板中使用。

屬性 評論
說明 流程實例的說明。
發起人 進程實例的啟動器名稱。
initiatorId 進程實例的啟動器ID。
processCompleteTime 進程完成時的時間戳。
processInstanceId 進程實例的ID。
processInstanceStatus 0 =起始
1 =執行中
2 =完成
3 =完成
4 =終止
5 =終止
6 =暫停
7 =暫停
8 =取消暫停
processName 程式名稱。
processStartTime 進程啟動時的時間戳。
processVariables 進程變數的對象陣列。 每個進程變數對象都包含 名稱 (進程變數的名稱), value (進程變數的值)和 type (程式變數的類型)。

範例:

若要顯示 description 進程實例卡中進程實例的屬性,請執行以下步驟

  1. 關注 AEM Forms工作區自訂的一般步驟.

  2. 請執行下列動作:

    1. 將/libs/ws/js/runtime/templates/processinstance.html複製到/apps/ws/js/runtime/templates/(如果不存在)。 按一下 全部儲存.
    2. 在inprocessinstance.html中新增含有class = 'processDescription'的程式說明div。
    <div class="processDescription" title="<%= description%>"><%= description%></div>
    
  3. 請執行下列動作:

    1. 開啟/apps/ws/js/registry.js進行編輯。
    2. 搜尋和取代 text!/lc/libs/ws/js/runtime/templates/processinstance.htmlwith text!/lc/app/ws/js/runtime/templates/processinstance.html。
  4. 以上變更可能需要更新CSS檔案,方法是在樣式表/apps/ws/css/newStyle.css中新增項目,方法如下:

    .processinstance .processDescription {
     <!--Dummy values, need to be configured by user as per requirement as well as user can add or delete any property depending upon requirement-->
        width : 250px;
        font-size : 11pt;
        padding : 2px;
    }
    

本頁內容