How to set value form using node JS

Hi Niall,

I am sending the parameter using form value using the connector in JS again I need to set some variables into another form?

Please find MY JS Code
const fetch = require(‘node-fetch’);
const { Client, logger } = require(“camunda-external-task-client-js”);
const { Variables } = require(“camunda-external-task-client-js”);

// configuration for the Client:
// - ‘baseUrl’: url to the Process Engine
// - ‘logger’: utility to automatically log important events
const config = { baseUrl: “http://localhost:8080/engine-rest”, use: logger };

// create a Client instance with custom configuration
const client = new Client(config);

// susbscribe to the topic: ‘creditScoreChecker’
client.subscribe(“searchContributors”, async function({ task, taskService }) {

const CustomerName = task.variables.get("txtCustName");
const CustomerId = task.variables.get("txtCustId");
const Commodity = task.variables.get("txtCommodity");
const EmailAddress = task.variables.get("txtEmail");

//Complete Task
const processVariables = new Variables();

processVariables.set(“txtCustName”, CustomerName);
processVariables.set(“txtCustId”, CustomerId);
processVariables.set(“txtCommodity”, Commodity);
processVariables.set(“txtEmail”, EmailAddress);

await taskService.complete(task, processVariables)