Details

    • Type: Bug Bug
    • Status: Open Open (View Workflow)
    • Priority: Major 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)

      { msi = (ModelSlotInstance<MS, RD>) ms.makeActorReference((RD) value, this); addToActors(msi); }

      /*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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Sylvain Guérin
            Reporter:
            Vincent LEILDE
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Issue deployment