Details
-
Type:
Bug
-
Status:
Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
-
Rank:1919
Description
It is not possible to set an Excel workbook to an Excel Model slot:
- Create a VM with an Excel model slot
- Create an assignation action to set an excel workbook to this model slot
- Create the corresponding VMI
- Try to set an excel workbook
=> Crash
I suspect the problem happened since the ModelSlotInstanceConfiguration refactoring, especially in FlexoConceptInstance line 1279
:
private <MS extends ModelSlot<RD>, RD extends ResourceData<RD> & TechnologyObject<?>> void setModelSlotValue(MS ms, Object value) {
if (getFlexoConcept() != null && ms != null) {
ModelSlotInstance<MS, RD> msi = getModelSlotInstance(ms.getName());
if (msi == null)
/*if (value instanceof TechnologyAdapterResource)
{ msi.setResource((TechnologyAdapterResource<?, ?>) value); }if (value instanceof ResourceData)
{ msi.setAccessedResourceData((ResourceData<?>) value); }else
{ logger.warning("Unexpected resource data " + value + " for model slot " + ms); }*/
}
}
Because the value is not a ResourceData.