BPMN2 Create new tab for the Task class [message #1822443] |
Fri, 06 March 2020 12:21  |
Eclipse User |
|
|
|
Hi all,I am a beginner in this field so i have some very basic question about how to extend models.
This is the issue : i want to create a new property tab for "Task", let's call it "New tab" , and i want to insert some properties in it, for example i want to have two checkbox.
I tried extendind the task model and i added two new properties with type = "Eboolean" .
So i created a new property tab where i specified the features,the type and the class.
The problem is that when i create a new bpmn2 diagram , those features are in the "New Tab" but also in the already existing "Task" tab. How can i make them appear only in the new tab and not also in the "Task" tab.
Thank you
|
|
|
|
Re: BPMN2 Create new tab for the Task class [message #1822590 is a reply to message #1822562] |
Tue, 10 March 2020 10:18   |
Eclipse User |
|
|
|
Hi Ralph,thank you for answering ,
I did read the tutorial and i downloaded the customtask example, in the project "customtask" there was an example about "MyBoundaryEvent" which suited my needs perfectly, so i basically "copied" it but without creating a custom task , by simply extending the task model adding two properties, then i created a class for the the property tab exactly like the "MyBoundaryEventPropertyTab" and like i said , the new properties shows in both the already existing tab and the new tab so i'm probably missing something.
|
|
|
Re: BPMN2 Create new tab for the Task class [message #1822709 is a reply to message #1822590] |
Wed, 11 March 2020 18:01  |
Eclipse User |
|
|
|
I solved the issue by doing this :
I extended the Task model with the attributes i wanted.
I created a new property tab and replaced the default "Task" property tab with the new property tab.
In the class for the new property tab i did "Override" to the create bindings method and i added
if(property!="anyAttribute"){
bindProperty(be,property);
}
I created another property tab called AttributesTab and in the java class of the tab i simply added the bindings to the new properties .
If someone has a better solution i will gladly listen. Sorry for any grammar errors.
|
|
|
Powered by
FUDForum. Page generated in 0.03621 seconds