Create a Workflow Instance


  1. Running Zeebe broker with endpoint localhost:26500 (default)
  2. Run the Deploy a Workflow example

Source on github

 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Zeebe Community License 1.0. You may not use this file
 * except in compliance with the Zeebe Community License 1.0.
package io.zeebe.example.workflow;

import io.zeebe.client.ZeebeClient;
import io.zeebe.client.ZeebeClientBuilder;
import io.zeebe.client.api.response.WorkflowInstanceEvent;

public final class WorkflowInstanceCreator {

  public static void main(final String[] args) {
    final String broker = "";

    final String bpmnProcessId = "demoProcess";

    final ZeebeClientBuilder builder =

    try (final ZeebeClient client = {

      System.out.println("Creating workflow instance");

      final WorkflowInstanceEvent workflowInstanceEvent =

          "Workflow instance created with key: " + workflowInstanceEvent.getWorkflowInstanceKey());