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 2016/04/15 16:50:25 UTC
[jira] [Updated] (ISIS-1372) Change BackgroundCommandService to
work with new Command DTO
[ https://issues.apache.org/jira/browse/ISIS-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood updated ISIS-1372:
------------------------------
Description: The new Command DTO (ISIS-1371) will require changes to BackgroundCommandService implementations. (was: Currently the ActionInvocationFacetForDomainEventAbstract - to support background commands - calls the non-API method on BackgroundServiceDefault. The returned ActionInvocationMemento is serialized and persisted by BackgroundCommandService impl. To actually run in the background, the command object is rehydrated and passed to BackgroundExecution.
We also want to be able to republish events (via PublishingService2); this requires that the command memento holds ActionInvocationMementoDtos rather than the current "legacy" ActionInvocationMemento.
Currently the logic to pass to relevant info to the PublshingService - namely, the EventMetadata object - is hard-wired within IsisTransaction.
This ticket is to move the responsibility to create command action invocation memento DTOs into a new service, CommandMementoService, and have it also be able to create EventMetadata objects too. Thus the IsisTransaction becomes much thinner, and also allows PublishingServiceMq to reuse the CommandMementoService.
~~~
said another way: move code from IsisTransaction (to create the Event metadata) and also the code in PublishingServiceMq (to create action invocation memento DTOs from an event metadata) into this new service.
)
Summary: Change BackgroundCommandService to work with new Command DTO (was: Change BackgroundCommandService to work with Aim DTO; centralize logic for creating Aim DTOs within new domain service (CommandMementoService))
> Change BackgroundCommandService to work with new Command DTO
> ------------------------------------------------------------
>
> Key: ISIS-1372
> URL: https://issues.apache.org/jira/browse/ISIS-1372
> Project: Isis
> Issue Type: New Feature
> Components: Core
> Affects Versions: 1.12.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: 1.13.0
>
>
> The new Command DTO (ISIS-1371) will require changes to BackgroundCommandService implementations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)