cancel
Showing results for 
Search instead for 
Did you mean: 

Custom user task in Activiti Designer

bdietz
Champ in-the-making
Champ in-the-making
Hi

I want to create a custom user task for the Activiti Designer, that acts like a normal user task but has a couple of additional attributes, that I want to set using the Designer. I found the tutorial in the user guide, but that's only for service tasks and I couldn't find anything about custom user tasks. I tried google and searched this forum as well, but no luck either.

Is there a way to implement that? I don't even need to access the attributes during runtime, just want them to be in the xml so I can read them when the workflow is deployed.

Thanks for your help!

Best regards
Bianca
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
A user task is also implemented as an ActivityBehaviour, just the same as a service task. The user task is just a service task that waits. Check the USerTaskActviityBehaviour in the source code.

bdietz
Champ in-the-making
Champ in-the-making
Hi Joram,

thanks for your reply!

I found the class you're referring to, but I don't get, how I can use that for creating a custom user task in the designer. I see the similarities but I would want the designer to create that user task xml just with some added attributes, that don't even have to be interpreted by the engine.

Is that possible in a similar way to what is described in the user guide (for service tasks) or do I have to make significantly more changes to the code?

Thanks for your help!
Bianca

kuldeepjindal09
Champ in-the-making
Champ in-the-making
Hi Team,

I also want to know a complete program , how a user task works ..?
here working with user task, i am unable to do such things and also over blogs there is less information provided about user task..
so requesting u to please provide a step by step program to use user task.

Regards
kuldeep jindal

jbarrez
Star Contributor
Star Contributor
What is it you are missing regarding documentation?

Did you read http://activiti.org/userguide/index.html#_getting_started_10_minute_tutorial? The BPMN section of the user guide has a whole section on user tasks.