Own Extensions for the metamodel & modeler [message #870602] |
Tue, 08 May 2012 22:45  |
Eclipse User |
|
|
|
Hi everyone,
I am currently looking for a way to extend the BPMN 2.0 metamodel. In the OMG specification it says that you can extend the metamodel with XML Scheme-definitions. So I can for example a new task-type that is derived from the task-type.
Is there a way to register the new XML-scheme definition to the bpmn 2.0 modeler to have a new entry in the palette for my new extended task type?
If thats possible, could someone give me some tips on how to do that or has anyone a link to a tutorial? I read a bit on the forums but everything seems to be for the older STP-version when no XML-scheme extension was available? I downloaded the source code for the metamodel and the bpmn 2.0 modeler but am a bit lost now.
Greetings
Dominik
|
|
|
Re: Own Extensions for the metamodel & modeler [message #870704 is a reply to message #870602] |
Wed, 09 May 2012 12:03   |
Eclipse User |
|
|
|
Hi Dominik, welcome to the forum 
Have you looked at the jbpm target runtime extension plugin? This uses an extension model to augment the bpmn2 model. There are also "Custom Tasks" which can be added to the palette (search for "wid" configuration file handling).
I'm not sure if this is what you're looking for, but it might be a good start.
Cheers!
Bob
|
|
|
Re: Own Extensions for the metamodel & modeler [message #870968 is a reply to message #870704] |
Thu, 10 May 2012 11:58   |
Eclipse User |
|
|
|
Hi Robert,
thanks for the quick answer. 
I didnt look up the jbpm target runtime extension plugin yet. I am relatively new to the eclipse environment, worked with the .NET languages some years and now have to do these extensions. I am currently working through some eclipse tutorials about plugins and commands. The point is, that I dont know where to start if you tell me to look up the jbpm target runtime extension plugin. I dont know if I have to extend the mentioned plugin or if I have to build my own plugin and have the jbpm as dependency...
Could you maybe help me again and give me a rough overview to what I have to do? A hint for a tutorial or some little example would be awesome too. The same goes for the custom tasks. That really sounds exactly like what I need but I dont know how or where to start.
I hope you guys can help me one more time with it.
Cheers
Dominik
|
|
|
|
|
|
|
Re: Own Extensions for the metamodel & modeler [message #899514 is a reply to message #873113] |
Wed, 01 August 2012 09:13   |
Eclipse User |
|
|
|
Hi,
I didnt have much time in the past but want to continue with my project now. Robert got me started with his help, thanks again for that! I looked up the jbpm target runtime extension. Now there are some things I dont understand yet. I loaded the source code of that extension and it seems as if it has its own metamodel. But it uses the WID-Files to load just some attributes. I am a bit confused if the new custom tasks (email, twitter etc.) are new classes in their own metamodel or if these are just bpmn-conform tasks with additional attributes.
The next thing I would like to know is how the attributes of these custom tasks are set in the BPMN Modeler. In the graphical user interface there is a small button "Configure Work Item" with which you can modify the Attributes. Could someone tell me how this works, if I need to write a Graphiti-Feature for it or if it comes with the modeler and I just have to activate it.
If thats possible I would like to extend BPMN Tasks just with additional Attributes, so that everything is still BPMN conform. Later on I have to write a program, that loads a BPMN diagram and does some checks. Here I need to know if the Task is a specific "Custom Task", so there should be some kind of identification I can use. I hope someone can give me some tips and if the jbpmn extension is maybe exactly what I want (besides the WID-files, I dont need to customize the attributes of the new tasks, I know them already and dont need more in the future).
Thanks in advance,
Dominik
|
|
|
Re: Own Extensions for the metamodel & modeler [message #904422 is a reply to message #899514] |
Tue, 28 August 2012 12:02   |
Eclipse User |
|
|
|
Hi,
i just found this thread when i was looking if it is possible to create CustomTasks with the BPMN 2.0 Modeler Plugin. So, if i understood it right, then i can create a CustomTask and add it to the palette?
Thanks to Robert for the posted Example-Project. I looked into the project and started it in DevelopingMode of Eclipse. But in the BPMN-Modeler there was no CustomTask added to the palette when I created a little diagram. So, wherefor the 'SampleCustomTaskFeatureContainer' is?
If i want to create CustomTasks, do i have to create them in an own Plugin-Project? And how is this plugin connected to the BPMN Modeler-Plugin? Because there my CustomTasks should be shown in the palette...
(I just worked with the Activiti-Designer and there the CustomTasks got deposited in a jar-File in the UserLibrary. It worked, but the Activiti-Designer doesn´t support all the features I need to do with my CustomTasks) Now I hope the BPMN-Modeler is better to handle in that case...
Thanks for your help,
Pascal
|
|
|
|
Re: Own Extensions for the metamodel & modeler [message #1007139 is a reply to message #904629] |
Mon, 04 February 2013 15:28   |
Eclipse User |
|
|
|
Hello (sorry for bumping up an old thread),
is there a way to add a custom task programmatically ?
We have tasks described in property files and ideally I'd like to be able to just drop a new property file and have the code register the custom task automatically.
Is that feasible ?
Thanks,
Regards,
|
|
|
|
Powered by
FUDForum. Page generated in 0.04407 seconds