Skip to Content
0
Former Member
Aug 12, 2009 at 12:23 PM

how to get seeburger work bench counter value

102 Views

hi all,

i want to get the current counter value in the seeburger workbech counter.

i used the following function suggested in one of the threads in forum, but its giving the below error

func used:

try {

VariableBean be=VariableFactory.getVariableInstance("");

return be.getStringVariable(variableName);

} catch (Exception e) {

throw new RuntimeException(e);

}

error:

RuntimeException in Message-Mapping transformation: Exception:[java.lang.RuntimeException: java.lang.RuntimeException: VariableBeanServlet: Could not call getVariable() method of the Servlet. Cause=java.lang.ClassCastException]

i guess this above function is to get variable value and not counter value. can any body give me code to get counter value.

Thanks a lot in addvance

Regards,

Rashmi

Edited by: Rashmi H S on Aug 12, 2009 2:30 PM