2017-11-07 15 views
0

사용자가 워크 플로를 시작하는 동안 priority 속성을 AEM 6.2에 설정하면 기본 UI받은 편지함에 새로운 우선 순위 속성이 렌더링되어야합니다.AEM의 워크 플로받은 편지함에 새/사용자 지정 속성 추가

AEM 6.3에는 OOTB 기능이 있지만 AEM 6.2에는 새로운 기능이 표시되지 않으며 새로운 Workitem이 우선 처리됩니다. AEM 6.3에서받은 편지함을 사용자 지정할 가능성을 이해합니다.

AEM 6.2에서받은 편지함 사용자 지정을 어떻게 활용할 수 있습니까?

저는 현재 Adobe forum에서 언급 된 접근 방식을 따르고 있습니다.

enter image description here

에도 열 목록을 업데이트 한 후, 내가받은 편지함에 새 열을 볼 수 없습니다.

감사합니다.

답변

0

다음 접근법은 CQ5에서 작동합니다. AEM 6.2의 경우 다음 단계를 따르십시오.

Taking a example to show the name of the workflow initiator 

1) /libs/cq/workflow/content/notifications/workitemdetails/items/content/items/itemdetails/items/well/items 
create a new node : nt:unstructured 
(ex) 
fieldLabel - String - Started By 
name - String - startedBy 
renderReadOnly - Boolean - true 
showEmptyInReadOnly - Boolean - true 
sling:resourceType - String - granite/ui/components/foundation/form/textfield 

2) /libs/cq/workflow/components/inbox/list/json.jsp 
add code : 

WorkflowStatus wfStatus = res.adaptTo(WorkflowStatus.class);     
if (wfStatus != null) { 
    List<Workflow> workflows = wfStatus.getWorkflows(true); 
    if(workflows.size() > 0) { 
    String initiator = workflows.get(0).getInitiator(); 
    writer.key("startedBy").value(initiator); 
    } 
} 

Note : 
key name (startedBy) should match the name defined in new node 

3) /libs/cq/workflow/gui/components/inbox/clientlibs/inbox/js/model/InboxItemModel.js 
toJSON: function() { 
. 
. 
. 
startedBy: Granite.I18n.getVar(this.get("startedBy")) || "", 
} 

Now you can see the custom node entry in /notifications.html] 

screen shot : 
https://i.stack.imgur.com/YpoY9.png 
+0

감사합니다. – phemanthkumar28