Process variable as payload

How can i send a process variable in the payload?
I am trying to send a integer value of count=3 in payload and,decrement it later, any idea how i send process variable as a payload in HTTP-CONNECTOR.

Please have a look at this forum topic.

hi @barmac


i have tried but still i am not able to see the process variable named attempt,

my connector api java code is-
@RequestMapping(value = “/getconnector”, method = RequestMethod.GET)
public int mess(HttpServletResponse response) {
System.out.println(“hey”);
//attempt(attempt);
response.setStatus(HttpStatus.OK.value());

	String status1 = "hey";
	int statusCode = response.getStatus();
	return statusCode;

}

can you please help on this?

hi @barmac


i have tried but still i am not able to see the process variable named attempt,

my connector api java code is-
@RequestMapping(value = “/getconnector”, method = RequestMethod.GET)
public int mess(HttpServletResponse response) {
System.out.println(“hey”);
//attempt(attempt);
response.setStatus(HttpStatus.OK.value());

	String status1 = "hey";
	int statusCode = response.getStatus();
	return statusCode;

}

can you please help on this?

Any help on this please?