cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Activiti

jvidal
Champ in-the-making
Champ in-the-making
Hi there, I am new to Activiti and in my first task I am looking into extending the Web Modeler to include a new type of Service Task like the ones already built-in (Mule, Email).

I have searched and searched the internet with no luck. I could not find any tutorial or example on how to do that. So far I have modified a lot of classes but it's not clear to me what are the steps needed to add a new type. For example:

1. Add a new class in this package to represent your type.
2. Add an entry to this Constant class.
3. Add some logic in this class to map your content to a Service Task.
4. Modify this class or file to define the properties of your task.
5. etc.

I hope this is the right place to get some help.

Thanks in advance!
Regards,

Juan
1 REPLY 1

jvidal
Champ in-the-making
Champ in-the-making
btw, I followed the steps mentioned in this example http://docs.codehaus.org/display/ACT/Extending+Modeler+with+new+task+type with no luck. I do see a new type in the modeler's left pane but when I drag & drop it the icon is still the one from Mule and when I try to save the Model I get an error saying it couldn't be saved.

It happens in the ModelSaveRestResource class @ line 53 because the values map is empty and I get a NPE.