generated from wearefrank/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Save mapping uuid -> id, tell Ultimo the id instead of uuid. Nee…
…d to transform this back when Ultimo replies.
- Loading branch information
1 parent
b30e2ae
commit bcbe0a9
Showing
5 changed files
with
106 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
src/main/configurations/morcoreMessageProcessor/Configuration_UuidIdMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../FrankConfig.xsd"> | ||
|
||
<Adapter name="Internal_GetUuidById"> | ||
<Receiver name="Internal_GetUuidById"> | ||
<JavaListener name="Internal_GetUuidById" /> | ||
</Receiver> | ||
|
||
<Pipeline> | ||
<Exits> | ||
<Exit name="Exit" state="SUCCESS" /> | ||
<Exit name="Reject" state="REJECTED" /> | ||
<Exit name="Exception" state="ERROR" /> | ||
</Exits> | ||
|
||
<SenderPipe name="RetrieveUuid"> | ||
<FixedQuerySender | ||
name="RetrieveUuid" | ||
query="SELECT uuid FROM UUIDIDMAP WHERE id = ?{Id}" | ||
queryType="SELECT"> <!-- TODO: save for sql injection? --> | ||
<Param name="Id" sessionKey="Id" /> | ||
</FixedQuerySender> | ||
</SenderPipe> | ||
|
||
<XsltPipe name="GetUuidValue" xpathExpression="//row[1]/field[1]" /> | ||
|
||
<Text2XmlPipe xmlTag="uuid" name="Text2Xml" /> | ||
|
||
</Pipeline> | ||
</Adapter> | ||
|
||
<Adapter name="Internal_GetIdByUuid"> | ||
<Receiver name="Internal_GetIdByUuid"> | ||
<JavaListener name="Internal_GetIdByUuid" /> | ||
</Receiver> | ||
|
||
<Pipeline> | ||
<Exits> | ||
<Exit name="Exit" state="SUCCESS" /> | ||
<Exit name="Reject" state="REJECTED" /> | ||
<Exit name="Exception" state="ERROR" /> | ||
</Exits> | ||
|
||
<SenderPipe name="RetrieveId"> | ||
<FixedQuerySender | ||
name="RetrieveId" | ||
query="SELECT id FROM UUIDIDMAP WHERE uuid = ?{Uuid}" | ||
queryType="SELECT"> <!-- TODO: save for sql injection? --> | ||
<Param name="Uuid" sessionKey="Uuid" /> | ||
</FixedQuerySender> | ||
</SenderPipe> | ||
|
||
<XsltPipe name="GetIdValue" xpathExpression="//row[1]/field[1]" /> | ||
|
||
<Text2XmlPipe xmlTag="id" name="Text2Xml" /> | ||
|
||
</Pipeline> | ||
</Adapter> | ||
|
||
<Adapter name="Internal_SaveIdByUuid"> | ||
<Receiver name="Internal_SaveIdByUuid"> | ||
<JavaListener name="Internal_SaveIdByUuid" /> | ||
</Receiver> | ||
|
||
<Pipeline> | ||
<Exits> | ||
<Exit name="Exit" state="SUCCESS" /> | ||
<Exit name="Reject" state="REJECTED" /> | ||
<Exit name="Exception" state="ERROR" /> | ||
</Exits> | ||
|
||
<SenderPipe name="SaveUuidIdMapping"> | ||
<FixedQuerySender | ||
name="SaveUuidIdMapping" | ||
query="INSERT INTO UUIDIDMAP (id, uuid) VALUES (?{Id}, ?{Uuid})" | ||
queryType="OTHER"> <!-- TODO: save for sql injection? --> | ||
<Param name="Id" sessionKey="Id" /> | ||
<Param name="Uuid" sessionKey="Uuid" /> | ||
</FixedQuerySender> | ||
</SenderPipe> | ||
</Pipeline> | ||
</Adapter> | ||
|
||
</Module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters