Jump to content

Viewing BPM with errors


Recommended Posts

I need to check issue with the BPM (eg. errors etc) but I struggle to get "non-completed" process to show.

image.png.a54650a4747777cf03d1582e7b5c36c0.png

Its very hit and miss (more miss) when I check....is there a set way to get results, most times I just get a blank page.

Nasim

Link to comment
Share on other sites

Where do you find the id (apart from in the above location). I normally would have the request id.....can I find it with that?

Link to comment
Share on other sites

Guest Paul Alexander

We always have to refresh the 'Manage Executed Processes' multiple times before we get any results...which is really frustrating!

If it's caused by a timeout is there somewhere that we can increase this please? There's been many a time that I've missed a failed bpm because the timeout kicks in before I get any results!! :)

 

thanks

Link to comment
Share on other sites

you can search for the BPM ID in the Database Direct search (admin - Home/System/Data/Database Direct) by using this SQL search:

SELECT h_bpm_id FROM h_itsm_requests WHERE h_pk_reference = 'XXXXXXXXX'

Change the X's for the request number and it should return the actual BPM ID number

  • Thanks 1
Link to comment
Share on other sites

2 minutes ago, Jeremy said:

you can search for the BPM ID in the Database Direct search (admin - Home/System/Data/Database Direct) by using this SQL search:

SELECT h_bpm_id FROM h_itsm_requests WHERE h_pk_reference = 'XXXXXXXXX'

Change the X's for the request number and it should return the actual BPM ID number

@Jeremy this is something I was hoping for - many thanks

  • Like 1
Link to comment
Share on other sites

@nasimg @Jeremy any recent* workflow instances (executed processes that is) will also have an external reference which is the request reference. You can use that to filter the executed process you want to look at... not sure if the external reference is optimised for search same way the ID is though...

*recent means past several months going back in 2020 iirc...

Link to comment
Share on other sites

Hi @Victor, @Steve Giller

Thanks for your advice but trying to get to the failed BPM's without the having the BPM Id is almost impossible, in my experience I can sometimes find it (using the request id) but most times its blank. Why it works sometimes and mostly not is something I would urge you to look at as it should return results.

If you can fix it that would be useful to the wider community, but as @Jeremy has given us the sql query for getting the BPM Id (which seems to always work) I'll be using that from now on.

Nasim

Link to comment
Share on other sites

Guest Paul Alexander

@nasimg

I think that the 'Manage Executed Processes' button is definitely the easy way to do this, you just have to keep refreshing the screen to get any results. 

@Victor @Steve Giller maybe the refresh rate is something which could be looked at so that it works all the time please?

thanks

Link to comment
Share on other sites

@Paul Alexander agree a lot easier to get the list by pressing the 'Manage Executed Processes' button, but as sometimes I get results and if I refresh I get blanks. Very frustrating.

Using the BPM id always is getting me the result I need to work on, so I'm happy. Just a bit a of pain to log in with my super user id to get the bpm id but at least it guarantees to get me what I want...

Link to comment
Share on other sites

A trick to getting the BPM ID is to use the Custom Buttons on a request

  1. Click on the Manage Custom Buttons icon at the top of the request
  2. Add New
  3. Select BPM ID from the list of variable
  4. Copy the BPM ID from the Preview
  5. Cancel the creation of the new custom button.

Take it one step further and save the Custom Button with the URL https://admin.hornbill.com/[your instance name]/app/com.hornbill.servicemanager/workflow/bpm/![[h_bpm_id]] to take you there in one click.

image.png

  • Thanks 1
Link to comment
Share on other sites

Guest Paul Alexander

Hi @James Ainsworth

That's a handy little trick that could be useful thanks.

Could the refresh time of the 'Manage Executed Processes' page be looked at though please, so that we don't have to keep refreshing before any results show?

thanks

Link to comment
Share on other sites

42 minutes ago, Steve Giller said:

@nasimg @Paul Alexander There will be an enhancement in the next Admin release that will allow you to specify that the search is on BPM Id or External Reference which will resolve this.

Sounds good - look forward to seeing it.

Nasim

Link to comment
Share on other sites

1 hour ago, Paul Alexander said:

The timeout is less than 30 seconds....more like 10 in my instance?

@Paul Alexander how do you count the 10 seconds? By the way, is not a silly question, there is definitely a 30 sec timeout and this is why the browser shows no results but I am trying to understand if there is any other form of activity on the page that wool give the impression the search completes after 10 sec...

Link to comment
Share on other sites

Guest Paul Alexander

@Victor 

I count out loud :)

It's the same amount of time whether I initially press the 'Manage Executed Processes' button or the refresh button

image.png.e882bc1a11b21b24dc7668b386773788.png

So, after pressing the button (above), after 10 seconds, I then get this screen:

 

image.png.5a7d7ecb7c3e6a7e562cd4be708523b8.png

 

Pressing this button again cycles through the page (with me needing to press the refresh button)until eventually i DO get results. 

 

 

 

 

 

 

 

Link to comment
Share on other sites

When I press manage or refresh the process runs for 30s (stopwatch), but would recommend you try @James Ainsworth custom button trick (see above).

It opens up non-completed BPM's with one click (provided you are in the request with the issue).

Nasim

Link to comment
Share on other sites

Guest Paul Alexander
On 6/14/2021 at 11:03 AM, Paul Alexander said:

I count out loud :)

It's the same amount of time whether I initially press the 'Manage Executed Processes' button or the refresh button

@Victor - any more thoughts on this please? I often need to go to the 'Manage Executed Processes' page and it's frustratingly inconsistent for me 

thanks

Link to comment
Share on other sites

@Paul Alexander well.. basically the list of workflows here is retrieved by an SQL query. Any SQL query in Hornbill has a timeout of 30 sec, meaning if a running query takes more than this it is automatically cancelled by the platform. The running workflows table is quite complex, and has a bit of data in it, especially when there are many running workflows (failed, completed, suspended or in progress) in an instance, therefore there is a very distinct possibility that a query on this table will take more than the 30 sec timeout resulting in the behavior you experience: an empty list. This is obviously intermittent but happens more often on larger datasets. Now if you get the "No records to display" message after 10 sec, when there was no filter applied then that's something we can look at since it is not the timeout that is causing this...

Link to comment
Share on other sites

@Paul Alexander right, after checking with our infrastructure team, I now understand that the 30 sec is the standard timeout window but this is something they can manually adjust per instance (I wasn't aware of this). Your instance currently has the timeout set to 10 seconds which explains why no result is displayed after this time. The timeout is adjusted on occasion and it can go up or down.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...