updated mult instance example to use nested forms so all data can be saved w/ burnettk

This commit is contained in:
sartography-automated-committer 2023-06-08 16:56:14 -04:00
parent d905fb842d
commit 7a77b49063
No known key found for this signature in database
3 changed files with 18 additions and 11 deletions

View File

@ -2,9 +2,19 @@
"title": "Get Value",
"description": "",
"properties": {
"value": {
"values": {
"type": "object",
"title": "The Values",
"properties": {
"value_one": {
"type": "string",
"title": "Value"
"title": "Value One"
},
"value_two": {
"type": "string",
"title": "Value Two"
}
}
}
},
"required": []

View File

@ -1,5 +1 @@
{
"ui:order": [
"value"
]
}
{}

View File

@ -32,20 +32,21 @@
<spiffworkflow:property name="formJsonSchemaFilename" value="get-value-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="get-value-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:postScript />
</bpmn:extensionElements>
<bpmn:incoming>Flow_021rv5h</bpmn:incoming>
<bpmn:outgoing>Flow_1wsgus7</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics>
<bpmn:loopCardinality xsi:type="bpmn:tFormalExpression">int(tasks)</bpmn:loopCardinality>
<bpmn:loopDataOutputRef>values</bpmn:loopDataOutputRef>
<bpmn:outputDataItem id="value" name="value" />
<bpmn:loopDataOutputRef>value_collection</bpmn:loopDataOutputRef>
<bpmn:outputDataItem id="values" name="values" />
</bpmn:multiInstanceLoopCharacteristics>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1wsgus7" sourceRef="Activity_1i0kokz" targetRef="Activity_09mrv8o" />
<bpmn:manualTask id="Activity_09mrv8o" name="Review">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>You entered:
{% for value in values %}
{% for value in value_collection %}
- {{ value }}
{% endfor %}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>