@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseEndEvent.class) @FormDefinition( startElement = "general", policy = FieldPolicy.ONLY_MARKED, defaultFieldSettings = {@FieldParam(name = FIELD_CONTAINER_PARAM, value = COLLAPSIBLE_CONTAINER)} ) public class EndNoneEvent extends BaseEndEvent { public EndNoneEvent() { this(new BPMNGeneralSet(""), new BackgroundSet(), new FontSet(), new CircleDimensionSet(new Radius())); } public EndNoneEvent(final @MapsTo("general") BPMNGeneralSet general, final @MapsTo("backgroundSet") BackgroundSet backgroundSet, final @MapsTo("fontSet") FontSet fontSet, final @MapsTo("dimensionsSet") CircleDimensionSet dimensionsSet) { super(general, backgroundSet, fontSet, dimensionsSet); } }
TypeMirror mirror = null; try { definitionAnn.graphFactory(); } catch (MirroredTypeException mte) { mirror = mte.getTypeMirror(); if (StringUtils.isNotBlank(definitionAnn.nameField())) { processingContext.getDefinitionAnnotations().getNameFields().put(defintionClassName, definitionAnn.nameField());
public static Class<? extends ElementFactory> getGraphFactory(final Class<?> type) { Definition annotation = getDefinitionAnnotation(type); return null != annotation ? annotation.graphFactory() : null; }
@Override public Class<? extends ElementFactory> getGraphFactoryType(final T definition) { Definition annotation = getDefinitionAnnotation(definition.getClass()); return null != annotation ? annotation.graphFactory() : null; }
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseGateway.class) @FormDefinition( startElement = "general", policy = FieldPolicy.ONLY_MARKED, defaultFieldSettings = {@FieldParam(name = FIELD_CONTAINER_PARAM, value = COLLAPSIBLE_CONTAINER)} ) public class ParallelGateway extends BaseGateway { public ParallelGateway() { this(new BPMNGeneralSet(""), new BackgroundSet(), new FontSet(), new CircleDimensionSet(new Radius())); } public ParallelGateway(final @MapsTo("general") BPMNGeneralSet general, final @MapsTo("backgroundSet") BackgroundSet backgroundSet, final @MapsTo("fontSet") FontSet fontSet, final @MapsTo("dimensionsSet") CircleDimensionSet dimensionsSet) { super(general, backgroundSet, fontSet, dimensionsSet); } }
private void processDefinitionModelBuilder(final Element e, final String className, final Map<String, TypeConstructor> processingContextMap) { Definition definitionAnn = e.getAnnotation(Definition.class); TypeMirror bMirror = null; try { definitionAnn.builder(); } catch (MirroredTypeException mte) { bMirror = mte.getTypeMirror(); } if (null != bMirror && !VoidBuilder.class.getName().equals(bMirror.toString())) { String fqcn = bMirror.toString(); processingContextMap.put(className, TypeConstructor.builder(fqcn)); } else { processingContextMap.put(className, TypeConstructor.constructor(className)); } }
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseEndEvent.class) @FormDefinition( startElement = "general", policy = FieldPolicy.ONLY_MARKED, defaultFieldSettings = {@FieldParam(name = FIELD_CONTAINER_PARAM, value = COLLAPSIBLE_CONTAINER)} ) public class EndTerminateEvent extends BaseEndEvent { public EndTerminateEvent() { this(new BPMNGeneralSet(""), new BackgroundSet(), new FontSet(), new CircleDimensionSet(new Radius())); } public EndTerminateEvent(final @MapsTo("general") BPMNGeneralSet general, final @MapsTo("backgroundSet") BackgroundSet backgroundSet, final @MapsTo("fontSet") FontSet fontSet, final @MapsTo("dimensionsSet") CircleDimensionSet dimensionsSet) { super(general, backgroundSet, fontSet, dimensionsSet); } }
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @FormDefinition( startElement = "general",
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @FormDefinition( startElement = "general",
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseGateway.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseCatchingIntermediateEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseCatchingIntermediateEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseStartEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseGateway.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseEndEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @CanDock(roles = {"IntermediateEventOnActivityBoundary"}) @Morph(base = BaseTask.class)
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseThrowingIntermediateEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseCatchingIntermediateEvent.class) @FormDefinition(
@Portable @Bindable @Definition(graphFactory = NodeFactory.class) @Morph(base = BaseStartEvent.class) @FormDefinition(