it-at-m / digiwf-core

central workflow automation and integration platform based on the free process framework Camunda.
MIT License
19 stars 7 forks source link

Support Timer/Message-Start Event #545

Closed darenegade closed 5 months ago

darenegade commented 1 year ago

Is your feature request related to a problem? Please describe. Aktuell supportet die Plattform nur das Starten von Prozessen über die API oder per Kafka-Event. Timer-Events gehen zar grundsätzlich, aber das erfolgt nur Camunda intern und alle DigiWF-Meta-Daten werden nicht erzeugt (Config, Variablen, usw)

Describe the solution you'd like

Refactoring von startInstance, sodass für alle Prozess-Start-Logik ein EventListener greift

Describe alternatives you've considered Spezifische Listener nur für Timer-Events -> doppelter Code

accenptance criteria

Additional context https://git.muenchen.de/digitalisierung/digiwf-support/-/issues/344 https://git.muenchen.de/digitalisierung/digiwf-support/-/issues/345 https://git.muenchen.de/digitalisierung/digiwf-support/-/issues/447

darenegade commented 1 year ago

Das Thema muss man vielleicht nochmal tiefer legen. Das ist aber eine gute Chance, um Logik zu Kapseln und besser zu testen

darenegade commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @darenegade @dominikhorn93 @simonhir @StephanStrehlerCGI

darenegade commented 7 months ago

@dominikhorn93 Das wäre eventuell noch ein Thema für dich, wenn dir die Arbeit ausgeht

darenegade commented 6 months ago

Hab das Thema von Dominik übernommen

simonhir commented 6 months ago

MR #1406 leads to following error when starting processes (i.e. Example-All-Input-Fields, Usertask)

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.camunda.bpm.engine.ScriptEvaluationException: Unable to evaluate script while executing activity 'Event_StatusGestartetUndBeschreibungSetzen' in the process definition with id 'example-all-input-fields:38:f4ecc66b-eb46-11ee-801d-88899d5a525c':java.util.NoSuchElementException: No value present] with root cause
java.util.NoSuchElementException: No value present
    at java.base/java.util.Optional.orElseThrow(Optional.java:377)
    at de.muenchen.oss.digiwf.process.instance.process.ProcessFunctions.setDescription(ProcessFunctions.java:54)