Hi,
I tried the following in my class DefinicionesInicialesViewDefaultviewView which extends BaseTaskDetailsPageBean.
protected void beforeRenderResponse()
{
//execute original beforeRenderResponse
super.beforeRenderResponse();
//get new task Id
String newTaskID = (String) resolveExpression("# {activePreferencesBean.taskID}");
//check if we are in a new task
if (!this.definicionesInicialesViewDefaultviewView.definicionesIniciales.getTaskID().equals(newTaskID))
{
//instantiate web service object
FljBuscaDefinInicialInfo objSvc = getFljBuscaDefinInicialInfo();
//set input parameters
objSvc.getParameters().setP_NUM_SINI (this.definicionesInicialesViewDefaultviewView.definicionesIniciales.getTaskData().getClaimsDocument().getExpediente_Doc().getExpediente_doc().getNum_sini());
objSvc.getParameters().setP_NRO_EXPED(this.definicionesInicialesViewDefaultviewView.definicionesIniciales.getTaskData().getClaimsDocument().getExpediente_Doc().getExpediente_doc().getNro_exped());
//execute web service
objSvc.refresh();
//set values to business data
this.definicionesInicialesViewDefaultviewView.definicionesIniciales.getTaskData().getClaimsDocument().getExpediente_Doc().getExpediente_doc().setNegligencia(objSvc.getResult().getNEGLIGENCIA());
this.definicionesInicialesViewDefaultviewView.definicionesIniciales.getTaskData().getClaimsDocument().getExpediente_Doc().getExpediente_doc().setMto_danos_prop(java.lang.Double.parseDouble(objSvc.getResult().getMTO_DANOS_PROP()));
}
}
But I’m getting the following error:
[POP.001.0002] A “javax.portlet.PortletException” occurred with the Message “com.webMethods.portal.bizPolicy.BizException: [POP.001.0002] A “javax.portlet.PortletException” occurred with the Message “at com.webMethods.caf.faces.portlet.FacesPortlet.render(FacesPortlet.java:460)””
java.lang.NullPointerException
at com.webMethods.caf.definicionesinicialesview.DefinicionesInicialesViewDefaultviewView.beforeRenderResponse(DefinicionesInicialesViewDefaultviewView.java:78)
at com.webMethods.caf.faces.bean.BaseViewBean.beforePhase(BaseViewBean.java:85)
at com.webMethods.caf.faces.bean.FacesBeanPhaseListener.beforePhase(FacesBeanPhaseListener.java:30)
at com.webMethods.caf.faces.portlet.PortletLifecycle.phase(PortletLifecycle.java:241)
I’m executing correctly the web service?
Thanks
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine