Skip to content

Commit

Permalink
Added flow example
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Oct 12, 2022
1 parent b67da80 commit 7d7c195
Show file tree
Hide file tree
Showing 11 changed files with 1,053 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# selvbetjening.aarhuskommune.dk examples

```sh
docker-compose exec phpfpm vendor/bin/drush pm:enable os2forms_selvbetjening_examples
```

```sh
docker-compose exec phpfpm vendor/bin/drush pm:uninstall os2forms_selvbetjening_examples
docker-compose exec phpfpm vendor/bin/drush pm:enable os2forms_selvbetjening_examples
```

## Forms

```sh
open "http://$(docker-compose port nginx 80)/admin/structure/webform?search=&category=Example"
```

/form/example-flow-step-1

### Clean up

Remove webform submissions:

```sh
docker-compose exec phpfpm vendor/bin/drush webform:purge
```

Maestro tasks:

```sh
docker-compose exec phpfpm vendor/bin/drush os2forms-selvbetjening-examples:maestro:message
```

## Flows

```sh
open "http://$(docker-compose port nginx 80)/maestro/templates/list"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
langcode: en
status: true
dependencies:
module:
- os2forms_permissions_by_term
- os2forms_selvbetjening_examples
enforced:
module:
- os2forms_selvbetjening_examples
third_party_settings:
os2forms_permissions_by_term:
maestro_template_permissions_by_term_settings:
21: '21'
30: 0
32: 0
29: 0
39: 0
28: 0
22: 0
26: 0
36: 0
23: 0
24: 0
37: 0
31: 0
25: 0
33: 0
38: 0
id: example_flow
label: 'example flow'
app_group: 0
canvas_height: 900
canvas_width: 800
default_workflow_timeline_stage_count: 0
show_details: false
validated: true
views_attached:
maestro_completed_tasks:
view_machine_name: maestro_completed_tasks
view_weight: -9
view_display: default;Master
maestro_entity_identifiers:
view_machine_name: maestro_entity_identifiers
view_weight: -10
view_display: 'taskconsole_display;Task Console Display'
variables:
initiator:
variable_id: initiator
variable_value: '0'
workflow_timeline_stage_count:
variable_id: workflow_timeline_stage_count
variable_value: ''
workflow_current_stage:
variable_id: workflow_current_stage
variable_value: ''
workflow_current_stage_message:
variable_id: workflow_current_stage_message
variable_value: ''
tasks:
start:
id: start
tasktype: MaestroStart
label: Start
nextstep: example_flow_step_2
nextfalsestep: ''
top: '50'
left: '40'
assignby: fixed
assignto: engine
end:
id: end
tasktype: MaestroEnd
label: End
nextstep: ''
nextfalsestep: ''
top: '50'
left: '360'
assignby: fixed
assignto: engine
example_flow_step_2:
id: example_flow_step_2
tasktype: MaestroWebformInherit
label: 'example flow step 2'
nextstep: end
nextfalsestep: ''
runonce: false
top: '50'
left: '200'
assignby: fixed
assignto: ''
assigned: 'role:fixed:administrator'
handler: ''
showindetail: true
participate_in_workflow_status_stage: false
workflow_status_stage_number: 0
workflow_status_stage_message: ''
data:
unique_id: example_flow_step_2
webform_machine_name: example_flow_step_2
modal: notmodal
skip_webform_handlers: 0
webform_nodes_attached_to: none
use_nodes_attached: 0
webform_nodes_attached_variable: none
redirect_to: taskconsole
show_edit_form: 1
inherit_webform_unique_id: submission
inherit_webform_create_submission: 1
notifications:
notification_assignment: ''
notification_reminder: ''
notification_escalation: ''
escalation_after: 0
reminder_after: 0
notification_assignment_subject: ''
notification_reminder_subject: ''
notification_escalation_subject: ''
raphael: ''
to: ''
pointedfrom: ''
falsebranch: ''
lines: { }
initiator: null
workflow_timeline_stage_count: null
workflow_current_stage: null
workflow_current_stage_message: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
langcode: en
status: true
dependencies:
module:
- os2forms_permissions_by_term
- os2forms_selvbetjening_examples
enforced:
module:
- os2forms_selvbetjening_examples
third_party_settings:
os2forms_permissions_by_term:
maestro_template_permissions_by_term_settings:
21: '21'
30: 0
32: 0
29: 0
39: 0
28: 0
22: 0
26: 0
36: 0
23: 0
24: 0
37: 0
31: 0
25: 0
33: 0
38: 0
id: example_flow_page
label: 'example flow page'
app_group: 0
canvas_height: 900
canvas_width: 800
default_workflow_timeline_stage_count: 0
show_details: false
validated: true
views_attached:
maestro_completed_tasks:
view_machine_name: maestro_completed_tasks
view_weight: -9
view_display: default;Master
maestro_entity_identifiers:
view_machine_name: maestro_entity_identifiers
view_weight: -10
view_display: 'taskconsole_display;Task Console Display'
variables:
initiator:
variable_id: initiator
variable_value: '0'
workflow_timeline_stage_count:
variable_id: workflow_timeline_stage_count
variable_value: ''
workflow_current_stage:
variable_id: workflow_current_stage
variable_value: ''
workflow_current_stage_message:
variable_id: workflow_current_stage_message
variable_value: ''
tasks:
start:
id: start
tasktype: MaestroStart
label: Start
nextstep: example_flow_step_2
nextfalsestep: ''
top: '50'
left: '40'
assignby: fixed
assignto: engine
end:
id: end
tasktype: MaestroEnd
label: End
nextstep: ''
nextfalsestep: ''
top: '50'
left: '360'
assignby: fixed
assignto: engine
example_flow_step_2:
id: example_flow_step_2
tasktype: MaestroWebformInherit
label: 'example flow step 2'
nextstep: end
nextfalsestep: ''
runonce: false
top: '50'
left: '200'
assignby: fixed
assignto: ''
assigned: 'role:fixed:administrator'
handler: ''
showindetail: true
participate_in_workflow_status_stage: false
workflow_status_stage_number: 0
workflow_status_stage_message: ''
data:
unique_id: example_flow_step_2
webform_machine_name: example_flow_step_2
modal: notmodal
skip_webform_handlers: 0
webform_nodes_attached_to: none
use_nodes_attached: 1
webform_nodes_attached_variable: none
redirect_to: taskconsole
show_edit_form: 1
inherit_webform_unique_id: submission
inherit_webform_create_submission: 1
notifications:
notification_assignment: ''
notification_reminder: ''
notification_escalation: ''
escalation_after: 0
reminder_after: 0
notification_assignment_subject: ''
notification_reminder_subject: ''
notification_escalation_subject: ''
raphael: ''
to: ''
pointedfrom: ''
falsebranch: ''
lines: { }
initiator: null
workflow_timeline_stage_count: null
workflow_current_stage: null
workflow_current_stage_message: null
Loading

0 comments on commit 7d7c195

Please sign in to comment.