Skip to Content
0
Former Member
Jan 16, 2015 at 07:23 PM

FPM in ARFC2

88 Views

Hi,

I need to convert the model in a FPM based application to ARFC2.

I want to know how to handle the below statements in that case:


myModel = (MyModel) WDModelFactory.getModelInstance(MyModel.class,WDModelScopeType.APPLICATION_SCOPE);

fpm.connectModel(myModel);

If I define my ARFC2 model instance and use it as below, I get cast error (cannot cast from IWDModel to MyModel), although the ARFC model works fine with this statement

myModel=(MyModel)WDModelFactory.getModelInstance(AddperdataModel.class);

Without converting it to ARFC2, I cannot reimport the model to get the changes done at RFC end into my WDJ code.

Any suggestion is appreciated.

Thanks,

Priyanka