|Customize a Start Event Message [message #1252771]
||Fri, 21 February 2014 15:38
| Damien Dussol
Registered: February 2014
Hi Robert, Hi Everybody|
I'm trying to customize a message start event. I looked how it is done on JBoss runtime but if we use it, we cannot create on our properties tab and so on .. so I have created a CustomTask. The associated featureContainer extends CustomShapeFeatureContainer.
I override getAddFeature and createFeatureContainer with two new classes :
CreateStartEventMessageFeature that extends AbstractCreateEventFeature<StartEvent>
and AddStartEventMessageFeature extends AddEventFeature<StartEvent>.
In the palette I see my Event, no problem but I have trouble when I drag and drop in the editor : I fall in a infinite loop.
After investigation, I see that AddStartEventMessageFeature calls add function in AddEventFeature class . In this function we have this.getFeatureProvider().getAddFeature(context).add(context);
and this call AddEventFeature.add ... So I should override the add function where the pictogram is drawn and it is a lot of works to do.
Moreover I had to override createBusinessObject in CreateStartEventMessageFeature class to add the messageEventDefinition in the startEvent. Is it the right way to customize a start event message ?
Thks a lot.
Powered by FUDForum
. Page generated in 0.01515 seconds