cancel
Showing results for 
Search instead for 
Did you mean: 

custom alert Message

abirb
Champ in-the-making
Champ in-the-making
hi all,

I have requirement , where , in a simple workflow scenario when a rejection is initiated the user gets to see a custom alert message something like 'You are about to reject the workflow..'

Can this be done ?

Thanks for the help

Regards
ab
1 REPLY 1

m_vriens
Champ in-the-making
Champ in-the-making
I have a hack that might work for you. It's not pretty but will do the job.

Create a java action and then add a message to the screen before raising an exception:

import org.alfresco.web.ui.common.Utils;

public void execute(ExecutionContext executionContext) throws Exception {
        Utils.addErrorMessage("This is my error message");
    throw new Exception();
}

Then "This is my error message" will get shown and the workflow will refuse the continue.

It's not perfect, but at least it allows to display custom messages to the Screen.