1. Sivaprakash BKR
  2. PowerBuilder
  3. Friday, 19 June 2020 06:07 AM UTC

Hello,

For those who switch to Powerbuilder, a real world sample application with suggested ways to write business logic in a nvo, which could be coverted to C# for cloud conversion, will be better.  In powerbuilder separating the business logic and encapsulating in a nvo is really tricky, imho.  

If Appeon could come out with a sample application with the suggested method to write this, will be very useful for fresher and experienced [ to improve ].

I'm not sure whether it's already available or not. If not available, can Appeon plan one, with relevant documentation and / or webinar ?

Happiness Always
BKR Sivaprakash

 

Ricardo Jasso Accepted Answer Pending Moderation
  1. Thursday, 25 June 2020 16:59 PM UTC
  2. PowerBuilder
  3. # 1

To write business logic in a nvo that can be migrated to a Web API means you have to design the nvo with a service architecture mindset first and foremost. You need to think of it as an object which will perform specific functions through its methods and from which you cannot know anything about its state afterwards.

For example, I may have a function that takes a customer’s order and creates multiple vendors orders based on a recipe. A customer orders a cake, so I need to buy flour, sugar, milk, eggs, etc. So, I’ll create a method within a nvo that will receive an order number, read its products detail from the database, check the recipe, insert vendors orders in the database, and return a successful/fail response. This can then be easily migrated to a Web API.

Most of the examples you’ll see in the Appeon Community Webinars don’t cover this scenario. Those are aimed at explaining how to migrate your database access to a Web API instead of directly connecting to a database, which is really useful if you want to cloudify your existing applications, but that does not necessarily means business logic migration.

In those examples the database logic contained in the Update method of the DataWindow (proprietary of SAP/Appeon) is transported to a new object called .NET DataStore which has the same method and can perform the same function but in a remote database. So, the Web API just acts as a transfer mechanism of the data and metadata needed to perform the update (insert, modify, or delete). I see this as a database logic migration rather than a business logic migration. Nevertheless, it is a very powerful feature for us PowerBuilder developers.

In the end it all depends on what you want to do. In PowerBuilder 2019 R2 Appeon has provided us with the tools needed to do both, database logic migration as well as business logic migration, as long as the latter is designed with a service architecture in mind.

Regards,

Ricardo

 

Comment
  1. Sivaprakash BKR
  2. Friday, 26 June 2020 10:41 AM UTC
Excellent Ricardo.

We see Appeon talking more about business logic migration and not database logic migration. This gave me a impression that Appeon got / suggesting to have business logic in nvo's, that it could be easily migrated to server side C# script.
  1. Helpful
  1. Sivaprakash BKR
  2. Monday, 29 June 2020 06:36 AM UTC
Need to go through the sample applications mentioned in this discussion.

https://community.appeon.com/index.php/qna/q-a/sample-powerbuilder-cloud-application
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 19 June 2020 06:45 AM UTC
  2. PowerBuilder
  3. # 2

I think the next Elevate conference is going to be all about this.

regards

Comment
  1. Miguel Leeuwe
  2. Friday, 19 June 2020 14:40 PM UTC
I agree it would be nice to have. Meanwhile this might be of help?

https://www.appeon.com/company/events/how-migrate-powerscript-c-using-net-datastore.html

  1. Helpful
  1. Sivaprakash BKR
  2. Saturday, 20 June 2020 01:10 AM UTC
Will look into that, Miguel. Not sure whether it covers the whole thing that I expect.
  1. Helpful
  1. Sivaprakash BKR
  2. Monday, 22 June 2020 07:20 AM UTC
Miguel,

Went through the link that you provided. Nice one and it covers the second part [converting existing application ], but having the first part [ Details of existing application also ] is what I expect. All with source code, database structure, that we can try the conversion process.



Not the concept alone, with a downloadable, workable one will be better.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.