在前面一讲,我们发布了流程order-process-new,可以在camunda operator中查看这个流程。现在,我们可以创建流程实例了。由于windows控制台很多操作与linux不同,我们需要power shell中进行下面的操作。打开power shell,进入到zeebe 的broker目录,运行下面的命令:
./bin/zbctl.exe --insecure create instance order-process-new --variables '{\"orderId\": \"1234\", \"orderValue\":99}'
结果如下:
一个新的流程实例创建完成了。登录到http://localhost:8080查看一下:
会发现有一个流程实例,点击这个实例的链接,可以查看详细信息:
接下来,可以定义相关的任务,使流程实例继续执行。