cancel
Showing results for 
Search instead for 
Did you mean: 

Imported Model, but not able to set values or execute it

Former Member
0 Kudos

Hello Everybody,

I have imported a ARFC model, and i am trying to set the values and execute it. But it is giving a NullPointer Exception, when i am trying to set values to the input parameters and also when executing etc... Can anybody help in solving this.

Thanks & Regards,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ravi,

Did you binding the instrance of the model context attribute?

Regards,

Manivannan P

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

You need to create an element of the node for which you are trying to set the values first and then set the values and bind the element to the node.

Hopefully it should work!!

Cheers,

Arafat

Former Member
0 Kudos

Hi All,

Thank You Very Much for your concerns. What happened is some binding steps are missing in the controller, i added those and it worked...

Thanks & Regards,

Ravi

Former Member
0 Kudos

Hi ravi,

let check your code in this manner

<node mode>_input setNode=new <node mode>_input ();

wdContext.node<node mode>_input ().bind(setNode);

if you have any iternal table or structre z_icsss_crm.

z_icsss_crm inernalTab=new z_icsss_crm();

inernalTab.setName("your value");//wdContext.currentPersonElement().getName();

inernalTab.setCity("your value"); //wdContext.currentPersonElement().getCity();

setNode.set<model table or stucture>(inernalTab);

wdContext.current<model value node>_inputElement().modelobject().excute();

wdcontext.node<output>.invalidate();

you follow this code......

thanks

jati