camunda-community-hub / zeebe-client-node-js

Node.js client library for Zeebe Microservices Orchestration Engine
https://camunda-community-hub.github.io/zeebe-client-node-js/
Apache License 2.0
152 stars 38 forks source link

Add support for deploying Forms #332

Closed jwulf closed 11 months ago

jwulf commented 1 year ago

This relates to an epic to allow Form deployment and binding.

The Zeebe epic is here: [EPIC] Deploy Forms to Zeebe.

The Zeebe gRPC API will allow a form to be deployed via DeployResources.

The relevant gRPC API change is proposed as:

message DeployResourceResponse {
 // the unique key identifying the deployment
 int64 key = 1;
 // a list of deployed resources, e.g. forms or processes
 repeated Deployment deployments = 2;
}

message Deployment {
 // each deployment has only one metadata
 oneof Metadata {
   // metadata of a deployed process
   ProcessMetadata process = 1;
   // metadata of a deployed decision
   DecisionMetadata decision = 2;
   // metadata of a deployed decision requirements
   DecisionRequirementsMetadata decisionRequirements = 3;
   // metadata of a deployed form
   FormMetadata form = 4;
 }

message FormMetadata {
 // the form ID, as parsed during deployment; together with the
 // versions forms a unique identifier for a specific form
 string formId = 1;
 // the assigned form version
 int32 version = 2;
 // the assigned key, which acts as a unique identifier for this form
 int64 formKey = 3;
 // the resource name
 string resourceName = 4;
}
jwulf commented 1 year ago

At this point, I can't find a branch with the new gRPC API - it looks like it's still too early.

jwulf commented 12 months ago

It is now baked in - it's another method signature for deployResource. Needs to be tested against both Camunda SaaS and Self-Managed.

jwulf commented 11 months ago

This is slated for 8.4-alpha.2.

The feature is in a branch and ready to test against an alpha release.

philippfromme commented 11 months ago

Is there something blocking the release of zeebe-node with this feature? Form deployment in the desktop modeler depends on it (https://github.com/camunda/camunda-modeler/pull/3952). I've tested this feature using the 332-deploy-form branch.

jwulf commented 11 months ago

Published in 8.3.1

philippfromme commented 11 months ago

Nice! 🚀