cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend Modeler?

m2spring
Champ in-the-making
Champ in-the-making
I want to add my own task type to the Modeler palette.
Is there a good example I can follow?
I was told Modeler accepts the same extensions as Designer, but I'm unclear how to get started on this.
Thanks!
-Max
21 REPLIES 21

m2spring
Champ in-the-making
Champ in-the-making
Hi Tijs,
Another data point: When I create the edge with an additional waypoint, I am able to deploy.
[img]http://dl.dropbox.com/u/1917727/20130201-102532.png[/img]
Here, the corresponding BPMNEdge elements have two waypoints.
They should have three, of course.
For some reason, the waypoint at the Jenkins task box is missing.
I haven't figured out what my code is missing.
Maybe you have a word of advice?
-Max

m2spring
Champ in-the-making
Champ in-the-making
Finally figured out this problem myself.

I missed this in BpmnJsonConverter:
    DI_RECTANGLES.add(STENCIL_TASK_JENKINS);

I recommend to have some default logic, which applies when a stencil is none of these shapes.
This would avoid the problem I had.

-Max

trademak
Star Contributor
Star Contributor
Hi Max,

Good to read that it's working now.
As I said earlier, the support for adding custom elements is not yet there.
Maybe you could write a blog post about this? Then we'll add it to the Activiti article list.

Best regards,

m2spring
Champ in-the-making
Champ in-the-making
Can I add it to the Wiki?
http://docs.codehaus.org/display/ACT/Home
-Max

trademak
Star Contributor
Star Contributor
Hi Max,

Yes adding it to the Wiki would be great.
Let me know if you don't have permission to do this.

Best regards,

m2spring
Champ in-the-making
Champ in-the-making
Hi Tijs,
yes, I would need the necessary permissions to edit the Wiki.
Can you please configure this?
I'm signed-up also as "m2spring" at Codehaus & Wiki.
Thanks!
-Max

trademak
Star Contributor
Star Contributor
Hi Max,

I added you to the list of developers and I'm expecting this also gives you confluence permissions.
Let me know if it works for you.

Best regards,

m2spring
Champ in-the-making
Champ in-the-making
Hi Tijs,

thanks for giving me access to the Wiki.
I added this page:
http://docs.codehaus.org/display/ACT/Extending+Modeler+with+new+task+type

Regards,
-Max

jbarrez
Star Contributor
Star Contributor
Thanks for writing that down, Max!

m2spring
Champ in-the-making
Champ in-the-making
Hi Tijs,

I just added support for the process import feature to handle my Jenkins task.
https://github.com/m2spring/Activiti/commit/317383d963eb94df89f439258c600b6a9a8104c1
I'd appreciate your feedback on this.

It's clear that because I map Jenkins task onto Service task, the mapping back is more ugly, having to inspect the delegate class name.

How would you approach a general-purpose extension mechanism which could handle this too?

Regards,
-Max