how to use the value in a variable (AKA data-variable_name attribute of the body or other element of the HTML document)?
an alternative to approaching it on the basis of creating a non-persistent object instance..
EXEC SCRIPT could compile the data-variable_name attribute into a string which it executes directly using the JS eval() function:
var sel_cust_id = document.getElementsByTagName("body")[0].getAttribute("data-sel_cust_id");
eval("AwareApp.startProcess2('process_name','object_name'," + sel_cust_id + ",'render_option')");
..thus circumventing creating a NP instance.
Another option, if the above doesn't work is for EXEC SCRIPT to insert a new script element into the HTML document body (or other) element. Upon insertion the script will run. The new script element would contain:
AwareApp.startProcess2('process_name','object_name',instance_ID,'render_option');
The process which is run would remove the new script element to keep the document tidy.