Getting Task's InputParameter as variables

I’ve defined InputParameter on Task and setting value of that InputParameter by passing variables during process instance creation. Task local Variables API does not return that variable. How do we get it using Java code and using Rest API?

Hi Suhas, is this the same issue as your other POST?

This gives you the REST example. For the Java part I am wondering from where you want to query the information. You can for instance check the values during execution for instance using this class:
https://github.com/camunda/camunda-bpm-examples/blob/master/bpmn-model-api/generate-jsf-form/src/main/java/org/camunda/bpm/quickstart/LoggerDelegate.java.