You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/07/01 00:23:24 UTC
[jira] [Resolved] (ISIS-818) wrapSkipRules does not execute action
due to being hidden
[ https://issues.apache.org/jira/browse/ISIS-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood resolved ISIS-818.
------------------------------
Resolution: Fixed
Fix Version/s: core-1.6.0
Implemented along with ISIS-827, ISIS-828.
> 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
> Fix For: core-1.6.0
>
>
> 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)