feat: view and complete user task forms #61
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for user task forms. It shows the form in a modal and allows the user to fill it out and submit it.
This first increment uses the element registry to figure out whether the element is a user task that has a form attached. A future iteration might make use of camunda-community-hub/zeeqs#284 instead
I decided to initialize the user task form with the variables of the process. Keeping the task form empty did not make sense for processes like the absence request template. The scope is not considered for now, but it should work for a lot of cases already. A more correct iteration could be done once the GraphQL API supports it.
Related issues
related to #10