Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
115 stars 70 forks source link

Select process setup from a list of pre-defined templates #10744

Open nkylstad opened 1 year ago

nkylstad commented 1 year ago

Description

Suggest we start with 3 different process templates.

Suggested that we keep the template files in the Studio solution

### Tasks
- [ ] https://github.com/Altinn/altinn-studio/issues/11167
- [ ] https://github.com/Altinn/altinn-studio/issues/11168
- [ ] https://github.com/Altinn/altinn-studio/issues/11169
- [ ] https://github.com/Altinn/altinn-studio/issues/11170
- [ ] https://github.com/Altinn/altinn-studio/issues/11397
- [ ] https://github.com/Altinn/altinn-studio/issues/11171
- [ ] https://github.com/Altinn/altinn-studio/issues/11172
- [ ] https://github.com/Altinn/altinn-studio/issues/11398
framitdavid commented 1 year ago

These templates should live within the Studio Solution and I suggest starting with the templates we can read about within the Docs, https://docs.altinn.studio/app-template/processhandling/.

We can start with these three processes: Start --> Data --> End Start --> Data --> Confirmation --> End Start --> Data --> Confirmation --> Feedback --> End

Considering adding one template with Gateway as well. Start --> Data --> Gateway --> Confirmation --> Gateway --> End

For the frontend, we should discuss with @Febakke or @Annikenkbrathen about where the user should select the template. Should it be when the user is creating an app or choosing when they open the BPNM Editor? 🤔

Annikenkbrathen commented 1 year ago

I do also think it's a good idea to start with these three process templates and see how it works.

About when/where the user should select the templates:

nkylstad commented 1 year ago

@Annikenkbrathen @framitdavid My suggestion is this:

nkylstad commented 1 year ago

Another comment - we could also support using different process templates for v7 and v8. Depending on when v8 is going to be released that is 😇 So that apps using v7 still could make some changes to the process if they need, without using the actual editor.

framitdavid commented 1 year ago

@nkylstad @mirkoSekulic here are the template files for v8. I have created the templates by using the BPMN-editor in Studio. 😎

bpmn-templates.zip

start-data-end start-data-confirmation-end start-data-confirmation-feedback-end

Should we add the start-data-confirmation-signing-feedback-end as well? 🤔

nkylstad commented 1 year ago

@framitdavid Nice! We can add start-data-signing-end at least, not sure if confirm and signing will be in the same process very often.

framitdavid commented 1 year ago

@nkylstad i agree.

@mirkoSekulic added start-data-signing-end here as well. 😊 start-data-signing-end.zip