cancel
Showing results for 
Search instead for 
Did you mean: 

Process is not deployed with setted task listener

partizano
Champ in-the-making
Champ in-the-making
Hi, Activiti Team.

I have a simple process whith 2 user tasks, it is deployed fine. But when I added task listener to one user task, I can't deploy bar-archive to the server. It says that "The deployment was uploaded", but there is no available process in activiti-explorer process tab. My user task is:
    <userTask id="usertask1" name="User Task 1" activiti:assignee="kermit">
      <extensionElements>
        <activiti:formProperty id="state" name="state" required="false" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="processInstanceName" name="processInstanceName" required="false" readable="true" writable="true"></activiti:formProperty>
        <activiti:taskListener event="complete" expression="${state='approved'}"></activiti:taskListener>
      </extensionElements>
    </userTask>

After I have deleted line "<activiti:taskListener event="complete" expression="${state='approved'}"></activiti:taskListener>" process is deployed fine.

Help please.


Thanks, Alexander
5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
Don't you see any exceptions in your console?

Could you perhaps create a simple test-case that does a programatic deploy of that process and asserts the process and deployment not being present in activiti?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
The expression should call a method, it is not a condition…

frederikherema1
Star Contributor
Star Contributor
Yes, true what Ronald says. If you want to set the "state" variable to true, you should use ${execution.setvariable('state', true)}

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
🙂 sorry I should have added, that if only I had noticed the intent Smiley Surprisedops:

partizano
Champ in-the-making
Champ in-the-making
Thanks a lot!


Alexander