super(fp, "TerminateEndEvent", "Add terminate end event");
}
public Object[] create(ICreateContext context) {
EndEvent endEvent = new EndEvent();
TerminateEventDefinition eventDef = new TerminateEventDefinition();
endEvent.getEventDefinitions().add(eventDef);
addObjectToContainer(context, endEvent, "TerminateEndEvent");
// return newly created business object(s)
return new Object[] { endEvent };