Hi all,
Is there a way to retrieve a list of all passed (or archived) timer events in REST API?
Consider this example…I want all my timer event triggers to work as milestones…so that I know the workflow passed through them after executing. So, I wish to retrieve them either while the instance is executing or after it’s completion. I tried with “API/bpm/timerEventTrigger?caseId=(caseId)&p=0&c=150” by giving it the “caseId” if it’s executing or the “archived caseId” if it’s finished. Both of them returned “200 ok” but with an empty payload.
Is there a way to do this? or is there a better way to create milestones?
I think this API retrieves only the active timers.
As far as the creation of milestones, I wouldn’t go for the timers personally. For me the milestones are related to the business use case covered by the process. Therefore it should be related to the functionality implemented by the process (or set of processes).
So the process should write either in the BDM or an external DB/systems the fact when a milestone has been completed. You can do through an operation or a connector.
Thanks Lionel. I stopped using timers and started using abstract tasks instead and named them “Milestone1”, “Milestone2”, … this allows me to retrieve the archivedTasks that contain “Milestone”, it’s fast and gives me a date and all…the downside is that it makes the diagram a whole lot bigger…connectors are a good way to go too though…
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.