cancel
Showing results for 
Search instead for 
Did you mean: 

How Process Run Mode is determined in Blueprism?

SeungjeiJang
Staff
Staff
Hi,

I've got a process which contains...
- Credentials (Background)
- Work Queues (Background)
- Environment Locking (Background)
- Utility - Environment (Background)
- Utility - File Management (Background)
- Utility - General (Background)
- My Own Object 1 (Foreground)
- My Own Object 2 (Foreground)

My objects are "Foreground", and the rest's Run Modes are "Background"

In this case, the process which uses these objects must be "Foreground", right?

This process still working like "Exclusive".
Like... When background processes are running and I tried to create a session of this process,
I got an error message that says "This RR is too busy..."

Which is not the expected result. It should be created well. 

Tbh it's really hard to track and change a process' Run Mode...
Any advice? or tips?

Thanks.

Regards,
Seungjei.
Seungjei Jang Professional Service Blue Prism Korea
1 BEST ANSWER

Best Answers

I know it sounds tricky at first sight for everyone so totally fine.

Therefore here are my easy-to-understand lines for run modes.

1) Foreground = 1 Foreground, Any Background, No Exclusive.

2) Background = 1 Foreground, Any Background, No Exclusive.

3) Exclusive = 1 Exclusive, No Background, No Foreground.


I hope this helps.

View answer in original post

9 REPLIES 9

To run another process on the same RR you need to make sure all the objects of the other process are set to the background and then only it will let you run both processes at the same time.

So can you check the objects run mode for the other process which you're trying to run simultaneously?

SeungjeiJang
Staff
Staff

Hi @Tejaskumar_Darji​​,

Thank you for your response.
Blue Prism Document says....
"The Run Mode of a process is determined by the most restrictive run mode of each of the business objects that it uses."

(If a process uses only "Background" and "Foreground" objects, the process must have "Foreground" Run Mode as I understand.)

and here are three type of Run Modes...

  • An exclusive process can not be run alongside any other process.
  • A foreground process can only be run alongside background processes, only one foreground process can be run at once.
  • A background process can be run with any other process, except exclusive processes.
https://bpdocs.blueprism.com/bp-7-0/en-us/frmStagePropertiesObjectInfo.htm?Highlight=object%20information

So, I wanted to make my process a "Foreground" process.
And I tried to create sessions at the same time, on the same RR as the "Background" processes.
Like the second line says in the document which is bolded line above.

Which is not wrong according to what the doc says.
A Foreground process can be running with Background processes at the same time, on the same machine.
But only a single Foreground process can be running on the same machine.

For clarification, my issue is this.
"Even though I checked all objects are Background or Foreground that my process uses, the process I made working like Exclusive Run Mode"

Thank you.
Seungjei Jang Professional Service Blue Prism Korea

Yes from the perspective of only Foreground and Background your process now became exclusive because only 1 foreground can run.
So in that terms, it became exclusive.

Therefore with this setup now you should be able to run parallel processes whose all objects are set to background only.

SeungjeiJang
Staff
Staff
Um... I don't understand to be honest.

I just tested.
I made a simple process that contains a background object and a foreground object.
It's ok to run this process with other background processes at the same time on the same machine.

This means the test process I made is working as Foreground Mode because the objects' the most restrictive run mode is "Foreground"
Seungjei Jang Professional Service Blue Prism Korea

Yes,

Point 1 is absolutely true but I would tweak point 2 a bit.

With Process1 set as Foreground, you still have the door open to run Process2, Process3 and so on as Background in parallel on the same RR.

But when your Process1 is set to Exclusive neither you can have Process2 as Foreground nor as Background.

So that is the difference here.

I know it sounds tricky at first sight for everyone so totally fine.

Therefore here are my easy-to-understand lines for run modes.

1) Foreground = 1 Foreground, Any Background, No Exclusive.

2) Background = 1 Foreground, Any Background, No Exclusive.

3) Exclusive = 1 Exclusive, No Background, No Foreground.


I hope this helps.

SeungjeiJang
Staff
Staff
I totally understood what you commented last.

My question is this again.

Why even though I didn't include any "Exclusive" object in my process, my process has "Exclusive" mode.
According to my initial question, my process has 6 background objects and 2 foreground objects...

Which I expect the process to be "Foreground" process..
Seungjei Jang Professional Service Blue Prism Korea

SeungjeiJang
Staff
Staff
Oh.... I just found the reason.
I checked only 1st depth objects only.
I've gone deeper and found an object's Run Mode was "Exclusive" mode.

I wish when I change an object's Run Mode BP checks it's dependencies and show all of objects' Run Mode.

Thank you for your comments.
I could think around during the conversation with you..!

Regards,
Seungjei.
Seungjei Jang Professional Service Blue Prism Korea

Glad you figured it out and I was of help.

I agree, currently, there is no mechanism that shows all of the process dependency along with calculating a final run mode for a process to easily figure out.

This is a really good idea for future enhancement.