// I able to overcome InvalidCoercionException error it was classpath problem but still not able to get it work getting null pointer
// ok here is simple test script TestExport is just plain POJO
import TestExport;
TestExport testExport = new TestExport();
System.out.println(" TESTING NOW 1");
testExport.setName("YYYYYYY");
System.out.println(" TESTING NOW 2");
testExport.setId("IDDDDD");
System.out.println(" TESTING NOW 3");
patExecContext.setProcessDataValue("/process_data/testExport", testExport);
System.out.println(" TESTING NOW 4");
TestExport testExport2 = (TestExport) patExecContext.getProcessDataValue("/process_data/@testExport");
testExport = (TestExport) patExecContext.getProcessDataValue("/process_data/@testExport");
System.out.println(" TESTING NOW 5"); // till here get printed
System.out.println(" testExport2 is here = "+ testExport.getNameID() );// throw null pointer
System.out.println(" testExport2 is here = "+ testExport2.getNameID() );// throw null pointer
System.out.println(" TESTING NOW 6"); does not print this