Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webform and flow examples #89

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# selvbetjening.aarhuskommune.dk examples

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

```shell
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

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

/form/example-flow-step-1

### Clean up

Remove webform submissions:

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

Maestro tasks:

```shell
docker compose exec phpfpm vendor/bin/drush os2forms-selvbetjening-examples:maestro:task
```

## Flows

```shell
open "http://$(docker compose port nginx 8080)/maestro/templates/list"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
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: []
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: 1
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,110 @@
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: []
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: 1
webform_nodes_attached_to: node/0
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
Loading