cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Subprocess

dev1
Champ in-the-making
Champ in-the-making
hi,
As mentioned in user guide I am successfully able to create a new acme money palette.I see that this new palette is just an extension of ServiceTask….if i wish to extend SubProcess or any other palette what i need to do…..

Regards,
DEV
6 REPLIES 6

balaji1
Champ in-the-making
Champ in-the-making
DEV,
Also I would like to extend MAnual Task Smiley Happy

THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

you cannot do that in the same way (i.e. by creating CustomServiceTasks). If you want to do that, you'll have to customize the Designer code, like Balaji is doing with the Manual task.

dev1
Champ in-the-making
Champ in-the-making
Hi,
Is there any way by which we can make a new palette work exactly the way the service process or the mail-task work ??…In my requirement i need not extend any pallet and do lots of changes….i just want to have a "new" palette which exactly works as subprocess, but with some added features.

Regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
Well, you can add your own drawers to the palette if you want by adding them to our code. The main problems you'll face are:

1) You'll need to either use Graphiti's tools to create and add nodes to the diagram, which is how we do it, OR program directly with the GEF API
2) Somehow the node you create this way will have to store its properties in the .activiti file, which I imagine will be extremely hard to do if you don't want to use our model and extend it for that node.

The way to go is therefore to customize and extend Activiti Designer. You can't do the things you want using CustomServiceTasks, but if you add stuff on to Designer, you should be able to accomplish it. If you want to keep up with new releases of Designer, though, you're going to have to re-add your customizations with each release.

dev1
Champ in-the-making
Champ in-the-making
OK, I think I understood some parts of your answer Smiley Happy ..

here's what i am trying to do, I have created the Acme Money node (both drawer and a new shape) in my existing Activiti Designer palette (reference - Activiti userguide). Finally when I drag the Money node onto my BPMN editor, I am seeing the below properties window :

[attachment=0]moneytask.JPG[/attachment]

I want to add a button called "OK" in this properties and on click of 'OK'  a java class called "MyClass" should be invoked. How can I accomplish this?

Thanks
Dev

tiesebarrell
Champ in-the-making
Champ in-the-making
You can't do that with a CustomServiceTask, because we don't support buttons. If that's what you need to do, you should create an extra tab besides the "Main" one you see there, make sure it's active for CustomServiceTasks by looking at the filter we have in place for our section, and then write your own SWT code for the property section. I don't see us resolving this particular issue any time soon: http://jira.codehaus.org/browse/ACT-414