NET languages, but once you have chosen the BP Object language, you must write your code in that language. In this manner you can create as many classes (concrete or abstract) and interfaces as you need, just stack them up inside the Global Code pane as you did with this one.įinally, make sure you understand that most VBOs (like the Excel one) are written in Visual Basic, so chopped-off stuff will not compile together with C# code you must use one or the other. You could try all this out using a layout like this one:Īnd basically. Similarly, you could use the method as follows: SomePerson Anyone = new SomePerson(firstName, lastName) For example, you could supply the FirstName and LastName in a couple of data items in BP, and then use an instance of the SomePerson class property to get the FullName using this code: SomePerson Anyone = new SomePerson(firstName, lastName) Now you will be able to call instances of this class from inside code-stages and use the property and the method. String myText = "Hello "+FullName+", it is nice to meet you." Return string.Format("", this._firstName, this._lastName) Public SomePerson(string firstName, string lastName) You can place this code inside the Global Code window as-is: public class SomePerson Next, here is an example of a simple concrete class with some fields, a constructor, a property and a method. It is also very important to change the Language selection to C# (bottom left drop-down), as Visual Basic seems to be the default option: 2 Cinnamon Park Crab Lane, Fearnhead, Warrington, England, WA20XP. BP already includes some basic ones as shown below. Here you should reference any libraries you intend to use (.dll) on the top pane, and their respective namespaces in the bottom pane. Since you are using C#, your first stop should be the Code Options tab. I don't know how much you know, so I am going to assume every step needs to be explained. If I understand your question correctly, you are looking for an example of a class containing one or more methods, that you can place into the Global Code stage of the Initialise page of your BP Object, and then be able to create/call instances of that class/method in your code-stages from the other pages in that BP Object. Deloitte and Blue Prism work together to implement robotic process automation (RPA) and intelligent automation solutions to global enterprise clients across.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |