Oscar Bou created ISIS-818:
------------------------------
Summary: wrapSkipRules does not execute action due to being hidden
Key: ISIS-818
URL: https://issues.apache.org/jira/browse/ISIS-818
Project: Isis
Issue Type: Bug
Components: Core
Affects Versions: core-1.5.0
Reporter: Oscar Bou
Assignee: Dan Haywood
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)
--
This message was sent by Atlassian JIRA
(v6.2#6252)