Search in sources :

Example 1 with EndEvent

use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpmn-model by camunda.

the class EndEventImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(EndEvent.class, BPMN_ELEMENT_END_EVENT).namespaceUri(BPMN20_NS).extendsType(ThrowEvent.class).instanceProvider(new ModelTypeInstanceProvider<EndEvent>() {

        public EndEvent newInstance(ModelTypeInstanceContext instanceContext) {
            return new EndEventImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : ThrowEvent(org.camunda.bpm.model.bpmn.instance.ThrowEvent) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) EndEvent(org.camunda.bpm.model.bpmn.instance.EndEvent) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 2 with EndEvent

use of org.camunda.bpm.model.bpmn.instance.EndEvent in project vertx-zero by silentbalanceyh.

the class KitEvent method endSet.

Future<Set<EndEvent>> endSet(final String definitionId) {
    final RepositoryService service = WfPin.camundaRepository();
    final BpmnModelInstance instance = service.getBpmnModelInstance(definitionId);
    final Collection<EndEvent> starts = instance.getModelElementsByType(EndEvent.class);
    return Ux.future(new HashSet<>(starts));
}
Also used : EndEvent(org.camunda.bpm.model.bpmn.instance.EndEvent) BpmnModelInstance(org.camunda.bpm.model.bpmn.BpmnModelInstance) RepositoryService(org.camunda.bpm.engine.RepositoryService)

Example 3 with EndEvent

use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.

the class SelfCancellationTest method initEndEvent.

public static void initEndEvent(BpmnModelInstance modelInstance, String endEventId) {
    EndEvent endEvent = modelInstance.getModelElementById(endEventId);
    TerminateEventDefinition terminateDefinition = modelInstance.newInstance(TerminateEventDefinition.class);
    endEvent.addChildElement(terminateDefinition);
}
Also used : EndEvent(org.camunda.bpm.model.bpmn.instance.EndEvent) TerminateEventDefinition(org.camunda.bpm.model.bpmn.instance.TerminateEventDefinition)

Example 4 with EndEvent

use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.

the class EndEventImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(EndEvent.class, BPMN_ELEMENT_END_EVENT).namespaceUri(BPMN20_NS).extendsType(ThrowEvent.class).instanceProvider(new ModelTypeInstanceProvider<EndEvent>() {

        public EndEvent newInstance(ModelTypeInstanceContext instanceContext) {
            return new EndEventImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : ThrowEvent(org.camunda.bpm.model.bpmn.instance.ThrowEvent) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) EndEvent(org.camunda.bpm.model.bpmn.instance.EndEvent) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 5 with EndEvent

use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.

the class HistoricProcessInstanceStateTest method initEndEvent.

protected static void initEndEvent(BpmnModelInstance modelInstance, String endEventId) {
    EndEvent endEvent = modelInstance.getModelElementById(endEventId);
    TerminateEventDefinition terminateDefinition = modelInstance.newInstance(TerminateEventDefinition.class);
    endEvent.addChildElement(terminateDefinition);
}
Also used : EndEvent(org.camunda.bpm.model.bpmn.instance.EndEvent) TerminateEventDefinition(org.camunda.bpm.model.bpmn.instance.TerminateEventDefinition)

Aggregations

EndEvent (org.camunda.bpm.model.bpmn.instance.EndEvent)8 JsonObject (io.vertx.core.json.JsonObject)2 TerminateEventDefinition (org.camunda.bpm.model.bpmn.instance.TerminateEventDefinition)2 ThrowEvent (org.camunda.bpm.model.bpmn.instance.ThrowEvent)2 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)2 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)2 RepositoryService (org.camunda.bpm.engine.RepositoryService)1 BpmnModelInstance (org.camunda.bpm.model.bpmn.BpmnModelInstance)1 FlowNode (org.camunda.bpm.model.bpmn.instance.FlowNode)1 WorkflowException (org.kitodo.exceptions.WorkflowException)1 TaskInfo (org.kitodo.production.workflow.model.beans.TaskInfo)1