cancel
Showing results for 
Search instead for 
Did you mean: 

listening to delegation events

christoph_retti
Champ in-the-making
Champ in-the-making
Hi guys, I would like to trigger some action whenever the delegation of some task changes.

Here are my attempts - unfortunately they all failedSmiley Sad

1. I have tried to implement a TaskListener which I attached globally (in the designer by adding a listener to the process) to a process: this does not seem
to be possible as my class has to implement ExecutionListener, so I

2. configured my TaskListener on every UserTask. This works when a task is being created or the assignment changes but in my application
the user can delegate the task to some user user/groups and as this does not commit the task itself my TaskListener does not get notified at all. So I tried

3. to add a custom BpmnParseListener to add a ExecutionListener in the parseUserTask method but also this does not get called.

So, is there a way to get notified whenever the delegation is changed using the API call TaskService.addCandidateGroup or TaskService.addCandidateUser?

I really comfortable solution would be to get notified in a TaskListener implementatiom I can attach to the process - it is really a paid to configure
the listener with every event and every task.

  c
9 REPLIES 9

trademak
Star Contributor
Star Contributor
Hi,

Right I understand your problem.
It won't be too hard to add a couple of additional task listeners. Would that solve your issues?
Would you be interested in contributing a patch for this?

Best regards,

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I think I could give it a try if you give me a hint on where I should start – assumed that I manage to compile the engine trunk sourcesSmiley Happy

  c

trademak
Star Contributor
Star Contributor
Hi,

Great. The TaskListeners are parsed in the BpmnParse class in the parseTaskListeners method. There you should add the new event names.
Then in the UserTaskActivityBehavior class the create event is thrown and in the TaskEntity class the complete and assignment events.
In the TaskEntity class you could add more events like the delegation events.
Let me know if things aren't clear. It's also important to add a couple of unit tests like the CustomTaskAssignmentTest class.

Best regards,

christoph_retti
Champ in-the-making
Champ in-the-making
Hi again, I checked out the trunk sources from svn but having problems building it using Eclipse Indigo (on windows 7, 64bit).

In eclipse I first tried to compile using Java 6 but as this didn't seem to work I installed a Java 5 SDK and got rid of many errors that seem to come
with java reference implementations (scripting, ..) that are already present in java 6.

From what I see most of the errors (I am just looking at the first 500) are class references that cannot be found or junit classes that are missing. As in the pom's junit is
specified as provided I would say that there is some problem with the maven container that seems to be unable to provide the dependencies.

Is there anything besides installing subversion and the maven2eclipse plugins that should be configured?

  c

christoph_retti
Champ in-the-making
Champ in-the-making
Ok, now I managed to build everything in eclipse too, so forget the last posting.

The filled out contriibution agreement is on the way to the address specified in the document, I hope to find some time to
fix the things within the next weeksSmiley Happy

  c

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I have sent a contribution agreement about 2 months ago without getting a reply - did it get lost? I would like to get this thing implementedSmiley Happy

  c

trademak
Star Contributor
Star Contributor
I'll ask the project lead if he received the contribution agreement.
But if you've sent it please feel free to start with the contribution.

Best regards,

trademak
Star Contributor
Star Contributor
Hi,

I asked, but we didn't receive a contribution agreement, or it did get lost somehow.
Could you resend it please and give me a ping?

Thanks,

bryanmaviss
Champ in-the-making
Champ in-the-making
Your post have the information that is help full and very informative. I would like you to keep up the good work you know how to make your post understandable for most of the people.
Thumbs up and Thanks