Overriding Display Name for Sequence Flow [message #1407907] |
Wed, 13 August 2014 15:09  |
Eclipse User |
|
|
|
Hello Folks,
Is it possible to override the display name for the sequence flow what is displayed onto Sequence Flow element for text pictogram element attached to it.
I don't want to show the persisted name as is for the sequence flow but want to provide a custom display name when render in the graphical editor, this name is not stored into bpmn model rather should be computed dynamically when sequence flow is getting displayed.
I have tried couple of things by overriding the AddFeature, UpdateFeautre, LayoutFeature etc but because of some annoying reason whenever i update the name value to text element attached to Sequence Flow the sequence flow is rendered with red dotted line. Any help , pointers are appreciated.
--
Thanks and Regards,
Bhuvan Mehta
|
|
|
|
Re: Overriding Display Name for Sequence Flow [message #1409437 is a reply to message #1407945] |
Mon, 18 August 2014 01:26  |
Eclipse User |
|
|
|
Hello Bob,
Thanks for the quick response. Looks like i am still on a little older version of modeler in which SequenceFlowFeatureContainer contains UpdateBaseElementNameFeature rather than UpdateLabelFeature, as suggested by you.
Would like to do it in extension way, Kindly suggest.
update feature for SequenceFlowFeatureContainer looks as following :
@Override
public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
MultiUpdateFeature multiUpdate = new MultiUpdateFeature(fp);
multiUpdate.addUpdateFeature(new UpdateDefaultSequenceFlowFeature(fp));
multiUpdate.addUpdateFeature(new UpdateConditionalSequenceFlowFeature(fp));
multiUpdate.addUpdateFeature(new UpdateBaseElementNameFeature(fp));
return multiUpdate;
}
I guess we still need to override add feature as well for custom name display else there is red dotted lie drawn for sequence flow.
Kindly suggest how this can be achived in best possible manner?
--
Thanks and Best Regards,
Bhuvan Mehta
|
|
|
Powered by
FUDForum. Page generated in 0.20319 seconds