: Public Note
Created: |
11/10/2018 11:22:08 |
Modified: |
15/11/2018 18:49:53 |
|
Project: |
|
Author: |
B49278 |
Version: |
1.0 |
Phase: |
1.0 |
Status: |
Proposed |
Complexity: |
Easy |
Difficulty: |
|
Priority: |
|
Multiplicity: |
|
Advanced: |
|
UUID: |
{0774B6B4-F1D9-4f4f-BDBC-D2BA5E03659A} |
Appears In: |
Notes Diagram |
<b>[Core] Market Operation (Only Phase 1)</b><br/>Logging (Logging Database) is active for every exchanged message (input and output)<br/><br/>Global Variables (default state)<br/><i>GateClosure = true</i><br/><i>ReformulationTimeEnd = true</i><br/><br/><br/>Thread 2 :: Form [Interface] as trigger<br/><ol>
<li>Receive offers from form [Interface] (validation of offers)</li><li>Validate against corresponding XSD (manually)</li><li>Save into [Storage] Offer Database with status <i>Changes Requirement/Selected/Rejected</i></li><li>Generate XML message of the offer (use the same timestamp and other fields as described in Sequence 1)</li><li>If status is <i>Changes Requirement</i>, use ChangedGeneralOffer operation (SendGeneralOffer service). Otherwise, use CreatedGeneralOffer operation (ReplyGeneralOffer service).</li></ol>
<br/>Thread 3 :: #lt;#lt;WS#gt;#gt; ExecuteGeneralOffer <b>Change</b><br/><ol>
<li>If GateClosure == false, ignore. <i>Return </i>Document with reason "Gate is still open".</li><li>If ReformulationTimeEnd == true, ignore. <i>Return </i>Document with reason "End of Reformulation Time".</li><li>If the offer is already in the Offer Database [Storage], <i>Return</i> document with reason "Document already exists"</li><li>Save into [Storage] Offer Database with status <i>In Validation.</i></li></ol>
<br/>Thread 4 :: Button [Interface] <i>ReformulationTimeEnd == true</i> as trigger<br/><ol>
<li>Create the final MarketResults document</li><li>Generate XML</li><li>Save results into MarketResults Database [Storage]</li><li>Send MarketResults document through CreatedMarketResults operation (SendMarketResults service).</li></ol>
<br/><i>(From Scenario 1)</i><br/>