Extending Subprocess
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2011 06:10 AM
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
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
Labels:
- Labels:
-
Archive
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2011 06:12 AM
DEV,
Also I would like to extend MAnual Task
THanks
Also I would like to extend MAnual Task

THanks

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2011 07:00 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:36 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 02:58 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 04:15 AM
OK, I think I understood some parts of your answer
..
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

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
moneytask.JPG
106 KB

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 04:36 AM
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
