Skip to content

Commit

Permalink
Merge pull request #55 from Backbase/BEFOUND-1543-Github-Build-Releas…
Browse files Browse the repository at this point in the history
…e-Fix

Internal Request param removed in Emit event
  • Loading branch information
MalarsriA authored Oct 22, 2024
2 parents 7eed63b + f082c51 commit 21a77c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

# backbase-services-toolkit Changelog

## [Unreleased]

## Unreleased
## 1.0.1
- Bug fix - Remove usage of Internal request


## [1.0.0]

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/liveTemplates/backbase.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<templateSet group="backbase">
<template name="emitevent" value="private final com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus;&#10;private final com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context;&#10;&#10; public $CLASS_NAME$(com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus, com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context) {&#10; this.eventBus = eventBus;&#10; this.context= context;&#10; }&#10;public void exampleEmitEvent(com.backbase.buildingblocks.backend.internalrequest.InternalRequest&lt;?&gt; request) {&#10;&#10; var event = new $EVENT_CLASS$();&#10; event.setData(&quot;some data&quot;); //TODO fill event based on the request. &#10;&#10;var envelopedEvent = new com.backbase.buildingblocks.backend.communication.event.EnvelopedEvent&lt;$EVENT_CLASS$&gt;();&#10; envelopedEvent.setEvent(event);&#10; envelopedEvent.setUserRequestContext(context);&#10; eventBus.emitEvent(envelopedEvent);&#10;}" description="Method to emit an event" toReformat="true" toShortenFQNames="true">
<template name="emitevent" value="private final com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus;&#10;private final com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context;&#10;&#10; public $CLASS_NAME$(com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus, com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context) {&#10; this.eventBus = eventBus;&#10; this.context= context;&#10; }&#10;public void exampleEmitEvent() {&#10;&#10; var event = new $EVENT_CLASS$();&#10; event.setData(&quot;some data&quot;); //TODO fill event based on the request. &#10;&#10;var envelopedEvent = new com.backbase.buildingblocks.backend.communication.event.EnvelopedEvent&lt;$EVENT_CLASS$&gt;();&#10; envelopedEvent.setEvent(event);&#10; envelopedEvent.setUserRequestContext(context);&#10; eventBus.emitEvent(envelopedEvent);&#10;}" description="Method to emit an event" toReformat="true" toShortenFQNames="true">
<variable name="CLASS_NAME" expression="className()" defaultValue="" alwaysStopAt="false" />
<variable name="EVENT_CLASS" expression="subtypes(&quot;com.backbase.buildingblocks.persistence.model.Event&quot;)" defaultValue="" alwaysStopAt="true" />
<context>
Expand Down

0 comments on commit 21a77c8

Please sign in to comment.