|
|
|
@ -19,7 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
* 将消息发送到MQ
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class SendMqAction implements BusinessProcess {
|
|
|
|
|
public class SendMqAction implements BusinessProcess<SendTaskModel> {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private KafkaUtils kafkaUtils;
|
|
|
|
@ -28,8 +28,8 @@ public class SendMqAction implements BusinessProcess {
|
|
|
|
|
private String topicName;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void process(ProcessContext context) {
|
|
|
|
|
SendTaskModel sendTaskModel = (SendTaskModel) context.getProcessModel();
|
|
|
|
|
public void process(ProcessContext<SendTaskModel> context) {
|
|
|
|
|
SendTaskModel sendTaskModel = context.getProcessModel();
|
|
|
|
|
String message = JSON.toJSONString(sendTaskModel.getTaskInfo(), new SerializerFeature[]{SerializerFeature.WriteClassName});
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|