added form for support extension w/ burnettk

This commit is contained in:
sartography-automated-committer 2024-02-12 17:03:27 -05:00
parent b60bc01939
commit 9c612b5568
No known key found for this signature in database
6 changed files with 45 additions and 5 deletions

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,11 @@
{
"title": "Contact",
"description": "Let us know what you are having trouble with.",
"type": "object",
"properties": {
"details": {
"type": "string",
"title": "Details"
}
}
}

View File

@ -0,0 +1,5 @@
{
"details": {
"ui:widget": "textarea"
}
}

View File

@ -12,7 +12,20 @@
"components": [
{
"name": "MarkdownRenderer",
"arguments": {"source": "## Support\n\nFor support using this app, contact:\n\n* **phone**: 555-5555\n* **email**: support@example.com"}
"arguments": {"source": "SPIFF_PROCESS_MODEL_FILE:::support-markdown.md"}
},
{
"name": "CustomForm",
"arguments": {
"id": "contact-form",
"formData": {},
"schema": "SPIFF_PROCESS_MODEL_FILE:FROM_JSON:::contact-form-schema.json",
"uiSchema": "SPIFF_PROCESS_MODEL_FILE:FROM_JSON:::contact-form-uischema.json"
},
"on_form_submit": {
"api_path": "support",
"persistence_level": "full"
}
}
]
}

View File

@ -0,0 +1,6 @@
## Support
For support using this app, contact:
* **phone**: 555-5555
* **email**: support@example.com

View File

@ -12,7 +12,7 @@
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="EndEvent_1" />
<bpmn:manualTask id="Activity_0qpzdpu" name="Example manual task">
<bpmn:scriptTask id="Activity_0qpzdpu" name="Example manual task">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>This is an example **Manual Task**. A **Manual Task** is designed to allow someone to complete a task outside of the system and then report back that it is complete. You can click the *Continue* button to proceed. When you are done running this process, you can edit the **Process Model** to include a:
@ -21,10 +21,15 @@
* **Service Task** - communicate with an external API to fetch or update some data.
You can also change the text you are reading here by updating the *Instructions* on this example manual task.</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="" />
<spiffworkflow:property name="formUiSchemaFilename" value="" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:script>hey = 1</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_support_6dw6zzs">
@ -34,9 +39,8 @@ You can also change the text you are reading here by updating the *Instructions*
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0zqotmb_di" bpmnElement="Activity_0qpzdpu">
<bpmndi:BPMNShape id="Activity_03xnhbm_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="215" y="177" />