## Get the variables
GET
<hostname>:<port>/kie-server/services/rest/server/containers/<container-id>/processes/instances/<process-instance-id>/variables
## Set the variables
POST
<hostname>:<port>/kie-server/services/rest/server/containers/<container-id>/processes/instances/<process-instance-id>/variables
if you want to access to the variable from the custom service, leverage the runtimeEngine
WorkflowProcessInstance processInstance = (WorkflowProcessInstance) runtimeEngine.getKieSession().getProcessInstance(instanceId);
processInstance.getVariable(name);
processInstance.setVariable(name, value);