cancel
Showing results for 
Search instead for 
Did you mean: 

Creating new Custom Task in Activiti Explorer

abhilashs
Champ in-the-making
Champ in-the-making
Hi,

I am trying to create a new Task of my own to use in Activiti.  I downloaded the activiti source code from GitHub and tried to explore activiti-explorer. I understand Vaadin but could not find the code how a simple service task or mail task is created. Please guide me on where should I look for how service task or mail task is created.

Thanks
Abhilash
8 REPLIES 8

hari
Star Contributor
Star Contributor
Hi Abhilash,

You can create a BPM with a start event & end event and in between you can have any number of user tasks/ service tasks/ mail task or anything as such as per your requirement. You can design this in Activiti Diagram in eclipse using activiti plugin.  You can then deploy this bpmn file into activiti explorer and start the process. You can then see your bpm execute with the tasks assigned to users or service tasks being executed etc.

rohitsingh
Champ in-the-making
Champ in-the-making
Hi Hari,

We tried the same approach,I mean we first created custom task with custom pallete using Activiti Designer and finally uploaded the .bpmn file to activiti explorer, but we can't see that custom pallete on Activiti Explorer.Can you tell us, what we are missing ?

Thanks,
Rohit

hari
Star Contributor
Star Contributor
Have you started the deployed process Rohit ?

rohitsingh
Champ in-the-making
Champ in-the-making
Yes Hari,

For Deployement we simple imported the .bpmn file (that has been auto-generated using Activiti designer plugin for eclipse) to activiti explorer ui. Then we created the process for the .bpmn file been imported and deploy the process using activiti-explorer ui and finally started the process.

hari
Star Contributor
Star Contributor
Hi Rohit,

For custom logic, you would have written some java code. You should generate and include that jar which has the custom logic to the class path.

rohitsingh
Champ in-the-making
Champ in-the-making
Hi Hari,

First of all,i want to thank you for your help.Yes we had included the custom task jar file to Activiti Designer classpath in eclipse.Do we also need to import this jar file to Activiti Explorer module ??
If yes, then can you tell me where else i need to import jar file.

Thanks,
Rohit

hari
Star Contributor
Star Contributor
If you have included that in eclipse, it won't show you the errors in design time. I hope you have included them to the actual system class path as well. Also did you see any errors in UI or logs ?

rohitsingh
Champ in-the-making
Champ in-the-making
No we didn't find any error in logs or ui,but we can't see the custom pallete that we were able to see in eclipse.

I want to create a custom task of my own by extending the Task Class. Like we have User Task, Service Task, Script Class etc, I want to create a custom task where I can add my own logic and it becomes available in Activiti Explorer for users to add in their model.

Thanks,
Rohit