gocamundazeebe

yaml workflow missing start tag


I'm trying to use Go client to programmatically manage workflows. I'm using yaml, this is my workflow:

name: order-process
tasks:
    - id: collect-money
      type: payment-service

    - id: fetch-items
      type: inventory-service
      switch:
          - case: totalPrice > 100
            goto: ship-parcel-with-insurance     
          - default: ship-parcel

    - id: ship-parcel-with-insurance
      type: shipment-service-premium
      end: true

    - id: ship-parcel
      type: shipment-service

And when I deploy this, I can't visualize it in camunda operate, the page is stuck on loading and I have this error in console:

Error: unparsable content detected
    line: 0
    column: 0
    nested error: missing start tag

Solution

  • we are sorry but Operate only supports BPMN XML deployments at the moment. The YAML support in Zeebe is only rudimentary and not intended for real-world use cases. It becomes really hard to model complex processes with yaml, which is easily possible with BPMN. We highly encourage you to switch to the Zeebe Modeler to create your workflow models.

    If you want to discuss this further, we are happy to welcome you in one of our community channels.