Original Message:
Sent: Mon April 17, 2023 10:30 AM
From: Mattias Edling
Subject: Get the scheduled date of a timer event?
Just now, I noticed that one must be a BAW admin to call this operation. I can understand it, but it might be showstopper for our intended implementation, unless we can build some intermediate layer that enforces per-application restrictions.
------------------------------
Mattias Edling
Original Message:
Sent: Tue March 07, 2023 04:18 AM
From: Mattias Edling
Subject: Get the scheduled date of a timer event?
I think I found an operation in the new REST API. Before I was looking at the classic one via REST API Tester UI:
https://MY_SERVER_AND_PORT/bpm/explorer/?url=/ops/docs#/Event%20Manager%20Tasks/getEventManagerTasks
Then we need to check the event description which will contain the name of the timer in the process diagram.
{ "event_manager_tasks": [ { "id": "FOO", "description": "Notify process instance 15716 to run the 'Reminder' timer", "state": "scheduled", "job_queue": "BPD Queue", "scheduled_time": "2023-03-10T13:50:17.755Z" }, { "id": "BAR", "description": "Notify process instance 15716 to run the 'Deadline' timer", "state": "scheduled", "job_queue": "BPD Queue", "scheduled_time": "2023-04-02T12:50:16.755Z" } ]}
------------------------------
Mattias Edling
Original Message:
Sent: Wed February 08, 2023 08:21 AM
From: Mattias Edling
Subject: Get the scheduled date of a timer event?
How can one programmatically find out the scheduled date of a timer (IME) in a process instance?
As an admin user, I can use the Process Inspector to see timers (with a token) and fire them manually, but not see when they are scheduled. I can also use the Event Manager->Monitor in Process Admin to find the scheduled event, unless there are to many of them there to list.
I have looked at the REST API and the JavaScript API, but so far I have not found any method to get timer events either via the instance or via the common event queues. Have I overlooked something?
The usecase of letting endusers, applications administrators or other systems/applications interacting with the process know when a timer is scheduled seems like a reasonable one.
------------------------------
Mattias Edling
------------------------------