Skip to content

Commit 461c7c2

Browse files
committed
Added flow example
1 parent 5a06dec commit 461c7c2

11 files changed

+1055
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# selvbetjening.aarhuskommune.dk examples
2+
3+
```sh
4+
docker-compose exec phpfpm vendor/bin/drush pm:enable os2forms_selvbetjening_examples
5+
```
6+
7+
```sh
8+
docker-compose exec phpfpm vendor/bin/drush pm:uninstall os2forms_selvbetjening_examples
9+
docker-compose exec phpfpm vendor/bin/drush pm:enable os2forms_selvbetjening_examples
10+
```
11+
12+
## Forms
13+
14+
```sh
15+
open "http://$(docker-compose port nginx 80)/admin/structure/webform?search=&category=Example"
16+
```
17+
18+
/form/example-flow-step-1
19+
20+
### Clean up
21+
22+
Remove webform submissions:
23+
24+
```sh
25+
docker-compose exec phpfpm vendor/bin/drush webform:purge
26+
```
27+
28+
Maestro tasks:
29+
30+
```sh
31+
docker-compose exec phpfpm vendor/bin/drush os2forms-selvbetjening-examples:maestro:task
32+
```
33+
34+
## Flows
35+
36+
```sh
37+
open "http://$(docker-compose port nginx 80)/maestro/templates/list"
38+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
langcode: en
2+
status: true
3+
dependencies:
4+
module:
5+
- os2forms_permissions_by_term
6+
- os2forms_selvbetjening_examples
7+
enforced:
8+
module:
9+
- os2forms_selvbetjening_examples
10+
third_party_settings:
11+
os2forms_permissions_by_term:
12+
maestro_template_permissions_by_term_settings:
13+
21: '21'
14+
30: 0
15+
32: 0
16+
29: 0
17+
39: 0
18+
28: 0
19+
22: 0
20+
26: 0
21+
36: 0
22+
23: 0
23+
24: 0
24+
37: 0
25+
31: 0
26+
25: 0
27+
33: 0
28+
38: 0
29+
id: example_flow
30+
label: 'example flow'
31+
app_group: 0
32+
canvas_height: 900
33+
canvas_width: 800
34+
default_workflow_timeline_stage_count: 0
35+
show_details: false
36+
validated: true
37+
views_attached:
38+
maestro_completed_tasks:
39+
view_machine_name: maestro_completed_tasks
40+
view_weight: -9
41+
view_display: default;Master
42+
maestro_entity_identifiers:
43+
view_machine_name: maestro_entity_identifiers
44+
view_weight: -10
45+
view_display: 'taskconsole_display;Task Console Display'
46+
variables:
47+
initiator:
48+
variable_id: initiator
49+
variable_value: '0'
50+
workflow_timeline_stage_count:
51+
variable_id: workflow_timeline_stage_count
52+
variable_value: ''
53+
workflow_current_stage:
54+
variable_id: workflow_current_stage
55+
variable_value: ''
56+
workflow_current_stage_message:
57+
variable_id: workflow_current_stage_message
58+
variable_value: ''
59+
tasks:
60+
start:
61+
id: start
62+
tasktype: MaestroStart
63+
label: Start
64+
nextstep: example_flow_step_2
65+
nextfalsestep: ''
66+
top: '50'
67+
left: '40'
68+
assignby: fixed
69+
assignto: engine
70+
end:
71+
id: end
72+
tasktype: MaestroEnd
73+
label: End
74+
nextstep: ''
75+
nextfalsestep: ''
76+
top: '50'
77+
left: '360'
78+
assignby: fixed
79+
assignto: engine
80+
example_flow_step_2:
81+
id: example_flow_step_2
82+
tasktype: MaestroWebformInherit
83+
label: 'example flow step 2'
84+
nextstep: end
85+
nextfalsestep: ''
86+
runonce: false
87+
top: '50'
88+
left: '200'
89+
assignby: fixed
90+
assignto: ''
91+
assigned: 'role:fixed:administrator'
92+
handler: ''
93+
showindetail: true
94+
participate_in_workflow_status_stage: false
95+
workflow_status_stage_number: 0
96+
workflow_status_stage_message: ''
97+
data:
98+
unique_id: example_flow_step_2
99+
webform_machine_name: example_flow_step_2
100+
modal: notmodal
101+
skip_webform_handlers: 0
102+
webform_nodes_attached_to: none
103+
use_nodes_attached: 0
104+
webform_nodes_attached_variable: none
105+
redirect_to: taskconsole
106+
show_edit_form: 1
107+
inherit_webform_unique_id: submission
108+
inherit_webform_create_submission: 1
109+
notifications:
110+
notification_assignment: ''
111+
notification_reminder: ''
112+
notification_escalation: ''
113+
escalation_after: 0
114+
reminder_after: 0
115+
notification_assignment_subject: ''
116+
notification_reminder_subject: ''
117+
notification_escalation_subject: ''
118+
raphael: ''
119+
to: ''
120+
pointedfrom: ''
121+
falsebranch: ''
122+
lines: { }
123+
initiator: null
124+
workflow_timeline_stage_count: null
125+
workflow_current_stage: null
126+
workflow_current_stage_message: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
langcode: en
2+
status: true
3+
dependencies:
4+
module:
5+
- os2forms_permissions_by_term
6+
- os2forms_selvbetjening_examples
7+
enforced:
8+
module:
9+
- os2forms_selvbetjening_examples
10+
third_party_settings:
11+
os2forms_permissions_by_term:
12+
maestro_template_permissions_by_term_settings:
13+
21: '21'
14+
30: 0
15+
32: 0
16+
29: 0
17+
39: 0
18+
28: 0
19+
22: 0
20+
26: 0
21+
36: 0
22+
23: 0
23+
24: 0
24+
37: 0
25+
31: 0
26+
25: 0
27+
33: 0
28+
38: 0
29+
id: example_flow_page
30+
label: 'example flow page'
31+
app_group: 0
32+
canvas_height: 900
33+
canvas_width: 800
34+
default_workflow_timeline_stage_count: 0
35+
show_details: false
36+
validated: true
37+
views_attached:
38+
maestro_completed_tasks:
39+
view_machine_name: maestro_completed_tasks
40+
view_weight: -9
41+
view_display: default;Master
42+
maestro_entity_identifiers:
43+
view_machine_name: maestro_entity_identifiers
44+
view_weight: -10
45+
view_display: 'taskconsole_display;Task Console Display'
46+
variables:
47+
initiator:
48+
variable_id: initiator
49+
variable_value: '0'
50+
workflow_timeline_stage_count:
51+
variable_id: workflow_timeline_stage_count
52+
variable_value: ''
53+
workflow_current_stage:
54+
variable_id: workflow_current_stage
55+
variable_value: ''
56+
workflow_current_stage_message:
57+
variable_id: workflow_current_stage_message
58+
variable_value: ''
59+
tasks:
60+
start:
61+
id: start
62+
tasktype: MaestroStart
63+
label: Start
64+
nextstep: example_flow_step_2
65+
nextfalsestep: ''
66+
top: '50'
67+
left: '40'
68+
assignby: fixed
69+
assignto: engine
70+
end:
71+
id: end
72+
tasktype: MaestroEnd
73+
label: End
74+
nextstep: ''
75+
nextfalsestep: ''
76+
top: '50'
77+
left: '360'
78+
assignby: fixed
79+
assignto: engine
80+
example_flow_step_2:
81+
id: example_flow_step_2
82+
tasktype: MaestroWebformInherit
83+
label: 'example flow step 2'
84+
nextstep: end
85+
nextfalsestep: ''
86+
runonce: false
87+
top: '50'
88+
left: '200'
89+
assignby: fixed
90+
assignto: ''
91+
assigned: 'role:fixed:administrator'
92+
handler: ''
93+
showindetail: true
94+
participate_in_workflow_status_stage: false
95+
workflow_status_stage_number: 0
96+
workflow_status_stage_message: ''
97+
data:
98+
unique_id: example_flow_step_2
99+
webform_machine_name: example_flow_step_2
100+
modal: notmodal
101+
skip_webform_handlers: 0
102+
webform_nodes_attached_to: none
103+
use_nodes_attached: 1
104+
webform_nodes_attached_variable: none
105+
redirect_to: taskconsole
106+
show_edit_form: 1
107+
inherit_webform_unique_id: submission
108+
inherit_webform_create_submission: 1
109+
notifications:
110+
notification_assignment: ''
111+
notification_reminder: ''
112+
notification_escalation: ''
113+
escalation_after: 0
114+
reminder_after: 0
115+
notification_assignment_subject: ''
116+
notification_reminder_subject: ''
117+
notification_escalation_subject: ''
118+
raphael: ''
119+
to: ''
120+
pointedfrom: ''
121+
falsebranch: ''
122+
lines: { }
123+
initiator: null
124+
workflow_timeline_stage_count: null
125+
workflow_current_stage: null
126+
workflow_current_stage_message: null

0 commit comments

Comments
 (0)