AnsweredAssumed Answered

Implement my own ManageTaskDialog: impossible b/c hardcoded?

Question asked by nicolasraoul on Jan 28, 2010
Latest reply on Mar 23, 2010 by nicolasraoul
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

Outcomes