Codota Logo
AbstractFlowNodeBuilder.endEvent
Code IndexAdd Codota to your IDE (free)

How to use
endEvent
method
in
io.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder

Best Java code snippets using io.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder.endEvent (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: zeebe-io/zeebe

private void addFlowFromTask(final AbstractFlowNodeBuilder<?, ?> builder, final YamlTask task) {
 if (!task.getCases().isEmpty()) {
  final String gatewayId = "split-" + task.getId();
  final ExclusiveGatewayBuilder gatewayBuilder = builder.exclusiveGateway(gatewayId);
  for (YamlCase flow : task.getCases()) {
   if (flow.getDefaultCase() != null) {
    gatewayBuilder.defaultFlow();
    addTask(gatewayBuilder, flow.getDefaultCase());
   } else {
    gatewayBuilder.condition(flow.getCondition());
    addTask(gatewayBuilder, flow.getNext());
   }
  }
 } else if (task.getNext() != null) {
  addTask(builder, task.getNext());
 } else {
  final YamlTask nextTask = getNextTask(task);
  if (!task.isEnd() && nextTask != null) {
   addTask(builder, nextTask.getId());
  } else {
   builder.endEvent();
  }
 }
}
origin: io.zeebe/zeebe-broker-core

private void addFlowFromTask(final AbstractFlowNodeBuilder<?, ?> builder, final YamlTask task) {
 if (!task.getCases().isEmpty()) {
  final String gatewayId = "split-" + task.getId();
  final ExclusiveGatewayBuilder gatewayBuilder = builder.exclusiveGateway(gatewayId);
  for (YamlCase flow : task.getCases()) {
   if (flow.getDefaultCase() != null) {
    gatewayBuilder.defaultFlow();
    addTask(gatewayBuilder, flow.getDefaultCase());
   } else {
    gatewayBuilder.condition(flow.getCondition());
    addTask(gatewayBuilder, flow.getNext());
   }
  }
 } else if (task.getNext() != null) {
  addTask(builder, task.getNext());
 } else {
  final YamlTask nextTask = getNextTask(task);
  if (!task.isEnd() && nextTask != null) {
   addTask(builder, nextTask.getId());
  } else {
   builder.endEvent();
  }
 }
}
origin: zeebe-io/zeebe

.sequenceFlowId("s2")
.connectTo("joinRequest")
.endEvent("end")
.done();
origin: io.zeebe/zeebe-broker-core

.sequenceFlowId("s2")
.connectTo("joinRequest")
.endEvent("end")
.done();
origin: zeebe-io/zeebe

private long deployWorkflow(String... taskTypes) {
 AbstractFlowNodeBuilder<?, ?> builder = Bpmn.createExecutableProcess(PROCESS_ID).startEvent();
 for (String taskType : taskTypes) {
  builder =
    builder.serviceTask(
      taskType,
      b -> b.zeebeTaskType(taskType).zeebeTaskRetries(3).zeebeTaskHeader("model", "true"));
 }
 final BpmnModelInstance model = builder.endEvent().done();
 return apiRule
   .createCmdRequest()
   .partitionId(DEPLOYMENT_PARTITION)
   .type(ValueType.DEPLOYMENT, DeploymentIntent.CREATE)
   .command()
   .put(
     "resources",
     Collections.singletonList(deploymentResource(bpmnXml(model), "process.bpmn")))
   .done()
   .sendAndAwait()
   .getKey();
}
origin: io.zeebe/zeebe-broker-core

private long deployWorkflow(String... taskTypes) {
 AbstractFlowNodeBuilder<?, ?> builder = Bpmn.createExecutableProcess(PROCESS_ID).startEvent();
 for (String taskType : taskTypes) {
  builder =
    builder.serviceTask(
      taskType,
      b -> b.zeebeTaskType(taskType).zeebeTaskRetries(3).zeebeTaskHeader("model", "true"));
 }
 final BpmnModelInstance model = builder.endEvent().done();
 return apiRule
   .createCmdRequest()
   .partitionId(DEPLOYMENT_PARTITION)
   .type(ValueType.DEPLOYMENT, DeploymentIntent.CREATE)
   .command()
   .put(
     "resources",
     Collections.singletonList(deploymentResource(bpmnXml(model), "process.bpmn")))
   .done()
   .sendAndAwait()
   .getKey();
}
origin: zeebe-io/zeebe

.sequenceFlowId("s2")
.connectTo("joinRequest")
.endEvent("end")
.done();
origin: io.zeebe/zeebe-broker-core

.sequenceFlowId("s2")
.connectTo("joinRequest")
.endEvent("end")
.done();
origin: zeebe-io/zeebe

.sequenceFlowId("joinFlow2")
.connectTo("join")
.endEvent()
.done();
origin: io.zeebe/zeebe-broker-core

.sequenceFlowId("joinFlow2")
.connectTo("join")
.endEvent()
.done();
origin: zeebe-io/zeebe

@Test
public void shouldNotCompleteInstanceAfterIncidentIsRaisedOnExclusiveGateway() {
 // given
 testClient.deploy(
   Bpmn.createExecutableProcess(PROCESS_ID)
     .startEvent()
     .parallelGateway()
     .serviceTask("task", t -> t.zeebeTaskType("task"))
     .endEvent("end-1")
     .moveToLastGateway()
     .exclusiveGateway("gateway")
     .defaultFlow()
     .endEvent("end-2")
     .moveToNode("gateway")
     .sequenceFlowId("to-end-3")
     .condition("$.x < 21")
     .endEvent("end-3")
     .done());
 testClient.createWorkflowInstance(PROCESS_ID);
 // when
 final Record<IncidentRecordValue> incident =
   RecordingExporter.incidentRecords(IncidentIntent.CREATED).getFirst();
 testClient.completeJobOfType("task");
 testClient.updatePayload(incident.getValue().getElementInstanceKey(), "{'x':123}");
 testClient.resolveIncident(incident.getKey());
 // then
 assertThatWorkflowInstanceCompletedAfter("end-2", WorkflowInstanceIntent.EVENT_ACTIVATED);
}
origin: io.zeebe/zeebe-broker-core

@Test
public void shouldNotCompleteInstanceAfterIncidentIsRaisedOnExclusiveGateway() {
 // given
 testClient.deploy(
   Bpmn.createExecutableProcess(PROCESS_ID)
     .startEvent()
     .parallelGateway()
     .serviceTask("task", t -> t.zeebeTaskType("task"))
     .endEvent("end-1")
     .moveToLastGateway()
     .exclusiveGateway("gateway")
     .defaultFlow()
     .endEvent("end-2")
     .moveToNode("gateway")
     .sequenceFlowId("to-end-3")
     .condition("$.x < 21")
     .endEvent("end-3")
     .done());
 testClient.createWorkflowInstance(PROCESS_ID);
 // when
 final Record<IncidentRecordValue> incident =
   RecordingExporter.incidentRecords(IncidentIntent.CREATED).getFirst();
 testClient.completeJobOfType("task");
 testClient.updatePayload(incident.getValue().getElementInstanceKey(), "{'x':123}");
 testClient.resolveIncident(incident.getKey());
 // then
 assertThatWorkflowInstanceCompletedAfter("end-2", WorkflowInstanceIntent.ELEMENT_COMPLETED);
}
io.zeebe.model.bpmn.builderAbstractFlowNodeBuilderendEvent

Popular methods of AbstractFlowNodeBuilder

  • condition
  • connectTo
  • serviceTask
  • connectTarget
  • connectTargetWithAssociation
  • connectTargetWithSequenceFlow
  • createBpmnShape
  • createEdge
  • createInstance
  • createSibling
  • createTarget
  • createTargetBuilder
  • createTarget,
  • createTargetBuilder,
  • done,
  • exclusiveGateway,
  • findLastGateway,
  • getCurrentSequenceFlowBuilder,
  • intermediateCatchEvent,
  • isBoundaryEventWithStartedCompensation,
  • isCompensationHandler

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JFrame (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now