Best Practices in Blue Prism



1. Coding Standards

Use of the listed coding standards in
Naming Conventions

A list of standard names should be followed for all. It is important to use a standard set of Naming Conventions across 

Where can naming conventions help in Fusion development?
  • Avoiding errors due to duplicate names:
Not following naming conventions can give rise to a lot of duplicates components. These duplicate names can be eliminated if naming conventions are followed.
  • Ease of modifying Fusion XMLs:
Following the standard naming conventions help in locating and modifying similar actions in
Subsequent sections explain briefly the different conventions used across
 Type     Element Naming Convention Examples

 Pro_Primary action Pro_ReadExcelData

 Process
 Action
 Decision
 Choice
 Calculation
 Multiple calculations
 Data Item
 Collection
 Loop
 Note
 End
 Exception
 Resume
 Recover

 Pro_name of the new business process
 Automatically generated
 Action_primary action
 Dec_action?
 Choice_Name of the choice
 Calc_action
 MCalc_action
 Datatype_source for data**
 Coll_source for data
 Loop_collectionName
 Note_name of the note
 End
 Exc_Type Of exception
 Resume
 Recover


 Object Name Obj_Type of application_application name_Primary action
  1. Obj_Wb_Create Employee_Register
  2. Obj_Wn_Notepad_Launch
 Object Studio
Block
Read
Write
 Navigate
 Code
 Wait
Process
Page
 Action
 Decision
Choice
 Multiple calculations
 Data Item
 Collection
 Loop
 Note
 Exception
 Recover
 Resume

Block_BlockName
Read_Application Name
Write_ApplicationName
 Nav_Action
 Code_functionName
 Wait_ElementName/ ApplicationName
Pro_name of the new business process
Automatically generated
Action_primary action
 Dec_action?
 Choice_NameOfChoice
 MCalc_action
 Datatype_source for data**
 Coll_source for data
 Loop_collectionName
 Note_name of the note
 Exc_Type of exception
 Recover
 Resume
 Queue Qu_UsedFor
  1. Qu_Approved
  2. Qu_Rejected
 Element Label of the Element FirstName

** Source for Data:
1.    Initial Value: Init.
2.    Excel : Exc
3.    Stages : Stage
4.    Element : Ele
Data Types:
1.    Password : Pwd
2.    Date: Date
3.    Date Time: DateTime
4.    Flag: Flag
5.    Number: Num
6.    Text:Txt
7.    Time: Time
8.    TimeSpa: TimeSpan
9.    Image: Img
10. Binary : Bin


 2. Queue Concept:

Almost every
  • Multiple machines can work from the same
  • An individual case can be marked as ‘complete’ if it has been worked satisfactorily, or marked as an ‘exception’ if it could not be completed.
  • MI such as volumes, performance levels and exception details can be extracted from queue data.
A Blue Prism Process is intended to obey instructions to do a repetitive task. That instruction could be some kind of list feeding the Process with work, for example, a spreadsheet. Alternatively a The process might be designed to wait for work to appear on an ad hoc basis, for example, files appearing in a folder.
Realistically we should expect there will be problems and accept that some cases will succeed and some will not. We may also instruct BluePrism to purposely disregard certain cases. Whatever happens, we will need to record results.
If there are too many cases for one instance of BluePrism to cope with, we may want to run the same Process on multiple machines to share out the workload.

The WorkQueue feature

www.manishsharma.dev


3. Exception Handling

It may help to visualize exception cases by thinking of a BluePrism process simply as a machine – a machine used to do a specific job over and over again.
Without concerning ourselves how this machine works, we can see that cases are fed into one end of the machine and results come out at the other end.
And in an ideal world, this machine would be able to do all its work without encountering any difficulties – every case fed into the machine would be completed.

www.manishsharma.dev

Unfortunately, the reality is that the machine will occasionally encounter problems and some cases will not make it through to completion.

www.manishsharma.dev


4. Delay Concept:

We often see that sometimes whenever we run page e.g. in case of a web application the launching of the page takes some time but the workflow would have completed all its actions even before the first stage is complete. This may sometimes happen due to connectivity issues. This will fail the workflow even after all the conditions are correct.

Now the question is how to tackle this?


This may be solved with the help of the Wait Stage. The wait stage is a tool available in the object studio. Before performing any action we can include a wait stage where we can check whether the screen exists or no by giving appropriate delay. If yes then go to the next stage or else end the process in.


----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
Powered by Blogger.