如何在zeebe处理程序中调用Hystrix的回调方法?

问题描述 投票:0回答:1

我有一个叫做payment-service的服务,它已经停止了,这个服务在zeebe处理程序中被调用。但它却返回了成功。

主类enter image description here

控制器类enter image description here

委托班enter image description here

当我执行localhost:8081order-process时,显示成功,在控制台中,我得到的错误是在GET请求""的IO错误。http:/localhost:8080payment-service。": Connection refused:

请告诉我为什么这个回调方法没有被调用。

spring-boot hystrix zeebe
1个回答
2
投票

你的REST服务返回 "成功 "的原因是你成功地启动了你的job worker (https:/docs.zeebe.iobasicsjob-workers.html。). 然后job worker从你的BPMN进程中执行jobsservice任务。

Hystrix将被用于within处理程序来进行调用,所以需要在within处理方法中考虑到潜在的异常或默认值。

© www.soinside.com 2019 - 2024. All rights reserved.