Hey.
I deployed the Spring Boot app and made a simple process
from the service task where I signed up for a creditScoreChecker topic
Launched the process and launched the node js : node server.js
But i have error :
$ node server.js
polling
✓ subscribed to topic creditScoreChecker
polling
polling failed with No message available
if I deploy the standard distribution camunda, everything works good.
My scriprt node.js
const { Client, logger } = require(“camunda-external-task-client-js”);
// configuration for the Client:
// - ‘baseUrl’: url to the Workflow Engine
// - ‘logger’: utility to automatically log important events
// const config = { baseUrl: “http://localhost:8080/engine-rest”, use: logger }; //also tried
const config = { baseUrl: “http://localhost:8080/rest”, use: logger };
// create a Client instance with custom configuration
const client = new Client(config);
// susbscribe to the topic: ‘creditScoreChecker’
client.subscribe(“creditScoreChecker”, async function({ task, taskService }) {
// Put your business logic
// set a process variable ‘winning’
const processVariables = new Variables();
processVariables.set(“winning”, “good”);
// complete the task
await taskService.complete(task);
});