How worklist and clipboard works ?

I would like to disable the worklist below the navigation tree, and I would like to manage my own list there.

Can you help me?

0 votes

1 answers

1634 views

ANSWER



The worklist and clipboard fragment are initialized by the org.nuxeo.ecm.webapp.documentsLists.DocumentsListsService/list extension point.

If you want to add a list, you just have to contribute a new list into this extension point with the category CLIPBOARD:

  <extension target="org.nuxeo.ecm.webapp.documentsLists.DocumentsListsService"
    point="list">
    <documentsList name="NAME">
      <category>CLIPBOARD</category>
      <imageURL>/icons/myicon.gif</imageURL>
      <title>theNameOfMyList</title>
      <persistent>IfTheListIsStoredIntoTheRepositoryOrJustInTheSession</persistent>
    </documentsList>
  </extension>

If you want to add Actions below the list, create them into the NAME_LIST category, here.

And if you want to populate or use this list in automation you can look what we did:

  • To get docs stored into your list: FetchFromWorklist
  • To clear the docs stored into your list: ClearWorklist
  • to populate: AddToWorklist

And if you want to remove, you just have to disable lists:

<extension target="org.nuxeo.ecm.webapp.documentsLists.DocumentsListsService "
point="list">
  <documentsList name="CLIPBOARD" enabled="false"/>
  <documentsList name="DEFAULT" enabled="false"/>
</extension>
1 votes