cancel
Showing results for 
Search instead for 
Did you mean: 

Implement my own ManageTaskDialog: impossible b/c hardcoded?

nicolasraoul
Star Contributor
Star Contributor
Hello all,

I want Alfresco to use my own MyManagedTaskDialog Java class instead of the usual ManageTaskDialog (allowing the user to choose a new assignee for the workflow).
So in faces-config-beans.xml, I changed the managed-bean-class to point to my implementation:

<managed-bean-name>ManageTaskDialog</managed-bean-name>
<managed-bean-class>mypackage.MyManageTaskDialog</managed-bean-class>

But despite this, Alfresco unfortunately still uses org.alfresco.web.bean.workflow.ManageTaskDialog 😞
I don't understand why.

When I grep the whole directory of Alfresco for "anageTaskDialog", I can see that org.alfresco.web.bean.workflow.ManageTaskDialog is referenced nowhere. I am getting worried that it might be hard-coded. I have found this frightening line in UIActionCommandProcessor.java:

CommandFactory.getInstance().registerCommand("managetask", ManageTaskDialogCommand.class);

Does this mean I can not implement my own ManageTaskDialog and wired it via configuration?

Thanks,
Nicolas Raoul
2 REPLIES 2

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
put config  in :faces-config-custom.xml

But despite this, Alfresco unfortunately still uses org.alfresco.web.bean.workflow.ManageTaskDialog
I don't understand why.
HOW TO YOU KNOW THIS?
but watch  on jsp that renders manageTaskDialog maybe this is cousing you problems.

nicolasraoul
Star Contributor
Star Contributor
I just realized it works now!
Maybe because I recently switched to 3.2r, I don't know exactly why, but it works 🙂
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.