Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-818

wrapSkipRules does not execute action due to being hidden

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: core-1.5.0
    • Fix Version/s: core-1.6.0
    • Component/s: Core
    • Labels:
      None

      Description

      Having a class with an action defined as the following one:

      // {{ ComputedValue (action)
      @Hidden
      @XMSAction(locales = @XMSLocale(locale = "es", caption = "Valor Calculado"))
      public ImpactLevel computedValue()

      { ... }

      Isis throws an exception while executing:

      assertThat(this.service(WrapperFactory.class).wrapSkipRules(asset).computedValue(), is(impactLevel));

      With the following stacktrace:

      org.apache.isis.applib.services.wrapper.HiddenException: Reason: Always hidden. Identifier: com.xms.framework.architecture.domain.model.Asset#computedValue()
      at org.apache.isis.core.wrapper.handlers.DomainObjectInvocationHandler.toException(DomainObjectInvocationHandler.java:626)
      at org.apache.isis.core.wrapper.handlers.DomainObjectInvocationHandler.notifyListenersAndVetoIfRequired(DomainObjectInvocationHandler.java:594)
      at org.apache.isis.core.wrapper.handlers.DomainObjectInvocationHandler.checkVisibility(DomainObjectInvocationHandler.java:578)
      at org.apache.isis.core.wrapper.handlers.DomainObjectInvocationHandler.invoke(DomainObjectInvocationHandler.java:217)
      at org.apache.isis.core.wrapper.proxy.ProxyInstantiatorForJavassist$1.invoke(ProxyInstantiatorForJavassist.java:52)
      at com.xms.framework.architecture.domain.model.business.BusinessProcess_$$jvsta1_16.computedValue(BusinessProcess$$_jvsta1_16.java)
      at com.xms.framework.architecture.integration.glue.business.old.AssetGlue.the_asset_with_name_has_the_asset_value(AssetGlue.java:113)
      at ✽.Then the asset with name "EAM-ASS-VAL-010-010 - Business Process" should have the asset value "null"(com/xms/framework/architecture/integration/specs/base/EAM-ASS-VAL - Enterprise Architecture Model - Assets - Valuation.feature:17)

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              oscarbou Oscar Bou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: