mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 05:38:06 +00:00
added form for support extension w/ burnettk
This commit is contained in:
parent
b60bc01939
commit
9c612b5568
1
extensions/support/contact-form-exampledata.json
Normal file
1
extensions/support/contact-form-exampledata.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
11
extensions/support/contact-form-schema.json
Normal file
11
extensions/support/contact-form-schema.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
5
extensions/support/contact-form-uischema.json
Normal file
5
extensions/support/contact-form-uischema.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"details": {
|
||||
"ui:widget": "textarea"
|
||||
}
|
||||
}
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
6
extensions/support/support-markdown.md
Normal file
6
extensions/support/support-markdown.md
Normal file
@ -0,0 +1,6 @@
|
||||
## Support
|
||||
|
||||
For support using this app, contact:
|
||||
|
||||
* **phone**: 555-5555
|
||||
* **email**: support@example.com
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user