splitBlock

This block allows to accumulate VC documents and produce new VCs in fixed chunks.

If the value in the VC is higher than the chunking threshold the VC would be β€œspilt” into multiple VCs containing values equal to the threshold value.

1. Properties

Block PropertyDefinitionExample InputStatus

tag

Unique name for the logic block.

splitBlock

permissions

Which entity has rights to interact at this part of the workflow.

NoRole

defaultActive

Shows whether this block is active at this time and whether it needs to be shown.

Checked or unchecked.

On errors

Called if the system error has occurs in the Block

  • No action

  • Retry

  • Go to step

  • Go to tag

Stop Propagation

End processing here, don't pass control to the next block.

Checked or unchecked.

Threshold

The size of a single β€˜portion’ (chunk) the original document would be β€œsplit” into. Note: It is always number>0

1000

Source field

It is the path to the field in the VC document which is the parameter used in the calculation of the β€˜size’ of the VC. Note: is a field to which the β€˜source field’ path points. It must be of numeric type.

source path link

2. Data(VC documents) format

After β€˜splitting’ of the VC document into several chunks these new created VCs will contain:

  1. All fields except the β€˜source field’ copied without any changes.

  2. Added evidence section of the following content:

{
            "type": [
                "SourceDocument"
            ],
            "messageId": "1655895001.624621306",
            "sourceField": "document.credentialSubject.0.field0",
            "sourceValue": 200,
            "threshold": 50,
            "chunkNumber": 1,
            "maxChunk": 4
        }

Last updated