F.6 Result messages with sub-results as references

This is an example of how the result messages are sent separately using sub-results references.

Configuration: A Job with two batches as follows:

Batch 1 with Batch Size = 3, Program 1

Batch 2 with Batch Size = 2, Program 2

Meta Data Usage for Results

All Results shall contain Result.ResultMetaData.ResultId, Result.ResultMetaData.SequenceNumber, and Result.ResultMetaData.Classification.

Additional ResultMetaData such as Name, etc. can be set based on the context.

Single Results:

Single Result. ResultMetaData. Classification = SINGLE_RESULT

Single Result. ResultMetaData. ResultState = COMPLETED

Single Result. ResultMetaData. IsPartial = FALSE

Batch Results:

Batch Result. ResultMetaData. Classification = BATCH_RESULT

Batch Result. ResultMetaData. ResultState = Based on the context.

Batch Result. ResultMetaData. IsPartial = TRUE if it is in progress, otherwise, it is FALSE.

Each Batch Result MUST contain the following ResultCounters:

BATCH_COUNT and BATCH_SIZE

ResultContent is empty.

Job Results:

Job Result. ResultMetaData. Classification = JOB_RESULT

Job Result. ResultMetaData. ResultState = Based on the context.

Job Result. ResultMetaData. IsPartial = TRUE if it is in progress, otherwise, it is FALSE.

Each Job Result can contain the following ResultCounters:

JOB_SIZE and JOB_COUNT

ResultContent is empty.

Note: For a Combined Result (Batch or Job Result), if SequenceNumber is not available then it can be assigned to the sequence number of the LATEST/LAST single tightening it is referencing.

Example Result Structure Layout for a Batch Result with Batch Size = 2

Result

ResultMetaData

ResultId

Classification = BATCH_RESULT

...

ResultContent

[

{

Result

ResultMetaData

ResultId = Single Result 1 ID

Classification = SINGLE_RESULT

ResultContent = Empty array

}

{

Result

ResultMetaData

ResultId = Single Result 2 ID

Classification = SINGLE_RESULT

ResultContent = Empty array

}

]

Result Messages: Send Parent and Child Results (sub-results) separately with References as follows.

Send Single Result 1 of Batch 1

Send Batch Result 1 with Single Result 1 ID, and Batch Count = 1, Batch Size = 3

Send Job Result with Batch Result 1 ID

Send Single Result 2 of Batch 1

Send Batch Result 1 with Single Result 1 ID and Single Result 2 ID and Batch Count = 2

Send Single Result 3 of Batch 1

Send Batch Result 1 with Single Result 1 ID and Single Result 2 ID and Single Result 3 ID and Batch Count = 3

Send FINAL Batch Result 1 with IDENTIFIERS of all the Single Results

Send Single Result 1 of Batch 2

Send Batch Result 2 with Single Result 1 ID and Batch Count = 1, Batch Size = 2

Send Job Result with Batch Result 1 ID and Batch Result 2 ID.

Send Single Result 2 of Batch 2

Send Batch Result 2 with Single Result 1 ID and Single Result 2 ID and Batch Count = 2

Send FINAL Job Result with Identifiers of Batch Result 1 and Batch Result 2.

Note: Refer to the example result structure layout above.