Retrieve archived (?) timer events

1
0
-1

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?

1 answer

1
0
-1
This one is the BEST answer!

Hi,

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.

Cheers

Comments

Submitted by tcarmo20 on Fri, 12/09/2016 - 16:35

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..

Notifications