使用管理員視圖管理組織層次結構中的任務 managing-tasks-in-an-organizational-hierarchy-using-manager-view

CAUTION
AEM 6.4已結束延伸支援,本檔案不再更新。 如需詳細資訊,請參閱 技術支援期. 尋找支援的版本 此處.

在AEM Forms工作區中,管理員現在可以存取指派給階層中任何人的工作(直接或間接報表),並對其執行各種動作。 這些工作可在AEM Forms工作區的「待辦事項」標籤中取得。 直接報表工作支援的動作包括:

前進 將任務從直接報告轉發給任何用戶。

索賠 申請直接報告的任務。

聲明和開啟 申請直接報表的任務,並在經理的待辦事項清單中自動開啟它。

拒絕 拒絕其他用戶轉發到直接報告的任務。 此選項適用於其他使用者轉送至直接報表的任務。

AEM Forms僅限使用者存取使用者具有存取控制(ACL)的工作。 這樣的檢查可確保用戶只能獲取具有訪問權限的任務。 使用協力廠商網站服務和實作來定義階層,組織可以自訂經理的定義,並直接製作報表以符合其需求。

  1. 建立DSC。 如需詳細資訊,請參閱以下主題中的「開發AEM Forms的元件」主題: 使用AEM Forms進行程式設計 指南。

  2. 在DSC中,為階層管理定義新SPI,以定義AEM Forms使用者內的直接報表和階層。 以下是範例Java™程式碼片段。

    code language-as3
    public class MyHierarchyMgmtService
    {
         /*
        Input : Principal Oid for a livecycle user
        Output : Returns true when the user is either the service invoker OR his direct/indirect report.
        */
        boolean isInHierarchy(String principalOid) {
    
        }
    
        /*
        Input : Principal Oid for a livecycle user
        Output : List of principal Oids for direct reports of the livecycle user
        A user may get direct reports only for himself OR his direct/indirect reports.
        So the API is functionally equivalent to -
        isInHierarchy(principalOid) ? <return direct reports> : <return empty list>
        */
        List<String> getDirectReports(String principalOid) {
    
        }
    
        /*
        Returns whether a livecycle user has direct reports or not.
        It's functionally equivalent to -
        getDirectReports(principalOid).size()>0
        */
        boolean isManager(String principalOid) {
    
        }
    }
    
  3. 建立元件.xml檔案。 請確定規格ID必須與以下程式碼片段中所示的相同。 以下是程式碼片段範例,您可重新使用。

    code language-as3
    <component xmlns="https://adobe.com/idp/dsc/component/document">
        <component-id>com.adobe.sample.SampleDSC</component-id>
        <version>1.1</version>
        <supports-export>false</supports-export>
          <descriptor-class>com.adobe.idp.dsc.component.impl.DefaultPOJODescriptorImpl</descriptor-class>
          <services>
            <service name="MyHierarchyMgmtService" title="My hierarchy management service" orchestrateable="false">
            <auto-deploy service-id="MyHierarchyMgmtService" category-id="Sample DSC" major-version="1" minor-version="0" />
            <description>Service for resolving hierarchy management.</description>
             <specifications>
             <specification spec-id="com.adobe.idp.taskmanager.dsc.enterprise.HierarchyManagementProvider"/>
             </specifications>
            <specification-version>1.0</specification-version>
            <implementation-class>com.adobe.sample.hierarchymanagement.MyHierarchyMgmtService</implementation-class>
            <request-processing-strategy>single_instance</request-processing-strategy>
            <supported-connectors>default</supported-connectors>
            <operation-config>
                <operation-name>*</operation-name>
                <transaction-type>Container</transaction-type>
                <transaction-propagation>supports</transaction-propagation>
                <!--transaction-timeout>3000</transaction-timeout-->
            </operation-config>
            <operations>
                <operation anonymous-access="true" name="isInHierarchy" method="isInHierarchy">
                    <input-parameter name="principalOid" type="java.lang.String" />
                    <output-parameter name="result" type="java.lang.Boolean"/>
                </operation>
                <operation anonymous-access="true" name="getDirectReports" method="getDirectReports">
                    <input-parameter name="principalOid" type="java.lang.String" />
                    <output-parameter name="result" type="java.util.List"/>
                </operation>
                <operation anonymous-access="true" name="isManager" method="isManager">
                    <input-parameter name="principalOid" type="java.lang.String" />
                    <output-parameter name="result" type="java.lang.Boolean"/>
                </operation>
                </operations>
                </service>
          </services>
    </component>
    
  4. 透過Workbench部署DSC。 重新啟動 ProcessManagementTeamTasksService 服務。

  5. 您可能需要重新整理瀏覽器,或重新登出/登入使用者。

下列畫面說明如何存取直接報表的工作和可用的動作。

cu_manager_view

訪問直接報告的任務並執行任務

recommendation-more-help
a6ebf046-2b8b-4543-bd46-42a0d77792da