|
|
|
Re: Creating a custom task with multiple visible elements [message #1265676 is a reply to message #1259332] |
Thu, 06 March 2014 12:03 |
Cédric Casenove Messages: 22 Registered: December 2013 |
Junior Member |
|
|
Hi Bob,
I modified some code in my add feature, and it works better. The decorateShape method was like that (I copied that from the AddStartEventFeature class):
protected void decorateShape(IAddContext context, ContainerShape containerShape, StartEvent businessObject) {
Graphiti.getPeService().setPropertyValue(containerShape, INTERRUPTING, Boolean.toString(true));
IPeService peService = Graphiti.getPeService();
peService.setPropertyValue(containerShape,
"marker.start.event",
AbstractUpdateEventFeature.getEventDefinitionsValue((StartEvent)businessObject));
}
I changed the implementation to:
protected void decorateShape(IAddContext context, ContainerShape containerShape, StartEvent businessObject)
{
IPeService peService = Graphiti.getPeService();
peService.setPropertyValue(containerShape, "interrupting", Boolean.toString(true));
// Set a dummy value for the start event property to force an update
// of the graphical element, so that event definitions are visible at creation time
peService.setPropertyValue(containerShape, "marker.start.event", "dirty");
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03939 seconds