cancel
Showing results for 
Search instead for 
Did you mean: 

Execution Listener: only Task Listener Allowed in wizard?

tvercruysse
Champ in-the-making
Champ in-the-making
Hello,

I'm starting using the Activity Designer on top of a standard Eclipse on a windows 64bit platform running Java 1.7.0_21, I've followed the installation instructions in the wiki.

I'm trying to implement a script execution listener : org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener directly from the properties tab of a selected sequence flow on an Activity Diagram. The Listener Configuration wizard allows to define either a Java class or an Alfresco script type, I choose Java Class and select the ScriptExecutionListener class. Then fill out my script.

No matter how I try to fill the details out, Activity Designer always falls back to "Alfresco script" type defining a Task Listener ( org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener) instead, which of course is not what I intended.

Is this a bug of the Activiti Designer, or am I missing something, why does the wizard offer different types if to always fallback to an Alfresco script ?

Of course I can edit the XML directly but the wizard's behavior kind of disappointed me.

Thanks for any help.

2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Right, this is a bug. In Github I've changed the Listener configuration wizard so you can choose between a task and execution script listener.

Thanks,

tvercruysse
Champ in-the-making
Champ in-the-making
That was fast 🙂

I'll definitely check it out.

Thanks, keep up the good work!