SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Application Engine

          D. Sree lakshmi
          EnvyTee InfoSoutions
• Introduction to Application Engine.

• Structure & Flow of an Application Engine Program.

• Executing Application Engine Programs

• Difference b/n AE and SQR
• Application Engine is used for BATCH or ONLINE processing
where you have a large (or small) amount of data that needs to be
  processed without user intervention.

Technical Definition:

• An AE program is a set of SQL statements, People Code, and Program
  Control Actions defined in Application Designer that performs a
  business process.
• Application Engine programs reside completely within your database.

• No Compilation required.

• Database Flexibility.

• Does not generate SQL or PeopleCode.

• Built in Re-Start Logic.

• Mostly used for SET based processing.

• PeopleCode can be written.

• AE program can be called from People Code.
• Program

• Sections

• Steps

   o   Actions
• Section Name (e.g. MAIN, etc) and Description

             • Market
                        • Platform
                               • Effective Date and Status

                                              • Auto Commit and Access Type
• Section Name (e.g. MAIN, etc) and Description

• Market

• Platform

• Effective Date

• Effective Status : Active & Inactive

• Auto Commit

• Access Type
• A Step represents the smallest unit of work that can be committed in a program.


• When you first create a program, you have a default MAIN Section and Step,
  initially named Step01.


• All programs require at least one Section, all Sections should contain at least one
  Step, and all Steps should contain at least one Action.
Commit After
 • Default
 • Later
 • After Step

On Error
 Abort
 Ignore
 Suppress

Frequency
• Contains all the code of Application Engine Program.

• There are eight types of Actions that you can include within a Step, and a Step
  can contain multiple Actions.

• You can only include one of each Action type within a single Step.

• The only mutually exclusive Actions within a single Step are Call Section and
  SQL Statement.
Program Flow Actions

Program Flow Actions are used to control the execution of your program. With
these Action types you can control the execution of subsequent Sections, Action(s),
or SQL statements depending on the results of a "Do" SQL statement in the form of
a SELECT.

Below are the four types of Program Flow Actions
 • Do When
 • Do While
 • Do Select
 • Do Until
• The DO When Action is a SELECT statement that allows subsequent actions
  to be executed if any rows of data are returned.

• This Action is similar to a COBOL "IF" statement.

• A DO When statement runs before any other actions in the Step.

• If the DO When statement returns any rows, the next Action will be executed.
  If the Do When conditions are not met, the remaining Actions within that Step
  are not executed.

• Your program executes a DO When Action only once when the owning Step
  executes.




                                www.itwisesolutions.com
• The DO Select Action is a SELECT statement that executes subsequent Actions
  once for every row of data that the Do Select returns.

• DO Select can execute a SQL statement for each row returned from the
  SELECT statement. The subsequent Actions within the Step are executed in a
  loop based on the results of the SELECT statement.
2.Do Select Type :
 • Select/Fetch Performs a Fetch for each iteration of the loop to get each row from
    the SELECT.

 • Re-Select It opens a cursor and fetches the first row.

 • Restartable It performs a Fetch on each iteration of the loop to get each row
   from the SELECT. It can be Restarted.
Use a Do Until if you want the "processing actions" to execute at least once, and to
execute over and over until a certain condition is true, such as until a SELECT
returns some rows.
PeopleCode Actions allow you to take advantage of IF-THEN logic, messaging, File
Layouts, Component Interface and various other features all from within your Application
Engine programs.

Configurable Properties
On Return :
If your PeopleCode program provides a false result, you can have Application Engine
respond by doing one of the following:
 • Abort The program issues an error and exits immediately.

 • Break The program exits the current Step and Section, and control returns to the
   calling Step.

 • Skip Step The program exits the current Step, and continues processing at the next
   Step in the Section.
Use this Action if you want to perform the following SQL commands on multiple rows:
 • UPDATE
 • INSERT
 • DELETE
 • SELECT
Configurable Properties

2.No Rows
In the event that the SQL (INSERT, UPDATE, and DELETE) associated with the SQL
Action does not return any rows, you need to specify what your Application Engine
program should do.

 • Abort The program terminates.

 • Section Break Application Engine exits the current Section immediately, and control
   returns to the calling Step.

 • Continue The program continues processing.

 • Skip Step Application Engine exits the current Step immediately and moves on to the
   next Step.
• Use the Call Section Action to Call Another Section defined in an Application
  Engine program.

• You can call a (local) Section defined within your current program, otherwise
  Section MAIN would be the only Section executed.

• Also you can make external calls to a Section defined in another Application
  Engine program.

• The external Section you intend to call must have its Access property set to Public.

• If a Section's Access property is set to Private, that Section can only be called from
  within the same program.

• Call Section is the only supported way to call Application Engine programs or
  Sections from other Application Engine programs or Sections.
• Use this type of Action to write a message to the Message Log.
 • The Message Log refers to the PeopleTools table PS_MESSAGE_LOG where
   execution messages reside.

Configurable Properties

 • Message Set Identifies a message set within the Message Catalog.

 • Number Identifies a particular message within a Message Set.

 • Parameters A list of comma-delimited values to substitute for %1, %2, and so
   on markers in the message text.
• The Application Engine State Record is the method by which you allocate variables
  for your Application Engine program.

• It is also the method by which Section, Steps, and Actions pass values to
  subsequent program steps.

• You can think of State Records in Application Engine as global variables without
  scope limiting rules.

• Only one record can be the default State Record

• Record Types as SQL and Derived/Work Records

• Process Instance is the only key Field and is used for maintaining session

• Notice the _AET naming convention
• PeopleSoft batch applications employ the technique of SET processing, and set
  processing (in most cases) involves extensive use of temporary tables.

• Temp Tables are used to store transient or intermediate results

• Improve performance
• Any Program
• Making batch temp tables
  parallel processing aware
  o Instance count is the
    number of concurrent
    instances
  o Batch Temp tables = Sum
    of the instance count for
    each program a table is
    used
  o Naming convention
    PS_NAME_TMPnn
• Set processing is a SQL technique used to process groups, or sets, of rows at
  one time rather than processing each row individually
• Application Engine has the built-in ability to save a program state and restart
  where it stopped processing in the case of an abend.
• To invoke or run an Application Engine program:

• Process Scheduler

• People Code

• Command Line
• CallAppEngine

 • To call a particular Application Engine program synchronously
   from a page using PeopleCode, you need to use the CallAppEngine()
   function in your SavePreChange or SavePostChange PeopleCode.

 • The basic syntax for CallAppEngine() is as follows:
CallAppEngine(applid [, statereclist ]);
Application                  Push Button
AE Run       Engine
         Process                Process

           Process Scheduler        Command
                                    Peoplecode Call
         PSAE.exe                  Logon

                Execute          Retrieve
                                 AE Program
             AE Constructs       Definitions         PS
              Peoplecode                          Database
             Program Files     Issue AE program



                                  SQL
• Restart Facility

• Inbuilt Tool

• Graphical User Interface
Application engine

Weitere ähnliche Inhalte

Was ist angesagt?

People soft application-designer-practice-8.43
People soft application-designer-practice-8.43People soft application-designer-practice-8.43
People soft application-designer-practice-8.43cesarvii
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONKranthi Kumar
 
Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people codeRandall Groncki
 
Oracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for ProjectOracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for Projectiavinashpatel
 
Setup of budget in oracle
Setup of budget in oracleSetup of budget in oracle
Setup of budget in oraclemalikbnu2008
 
Peoplesoft Query Overview
Peoplesoft Query OverviewPeoplesoft Query Overview
Peoplesoft Query OverviewRockon0017i5
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programmingSatheesh Kanna
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form materialRajesh Ch
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewChris Martin
 
IntegrationBroker
IntegrationBrokerIntegrationBroker
IntegrationBrokermeghamystic
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north americameghamystic
 
R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)lingaswamy vallapu
 
How to debug a fast formula
How to debug a fast formulaHow to debug a fast formula
How to debug a fast formulaFeras Ahmad
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormAhmed Elshayeb
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantAnkit Sharma
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAPsapdocs. info
 

Was ist angesagt? (20)

People soft application-designer-practice-8.43
People soft application-designer-practice-8.43People soft application-designer-practice-8.43
People soft application-designer-practice-8.43
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATION
 
Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people code
 
Oracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for ProjectOracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for Project
 
Setup of budget in oracle
Setup of budget in oracleSetup of budget in oracle
Setup of budget in oracle
 
Module pool programming
Module pool programmingModule pool programming
Module pool programming
 
Peoplesoft Query Overview
Peoplesoft Query OverviewPeoplesoft Query Overview
Peoplesoft Query Overview
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form material
 
Bapi step-by-step
Bapi step-by-stepBapi step-by-step
Bapi step-by-step
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table Overview
 
IntegrationBroker
IntegrationBrokerIntegrationBroker
IntegrationBroker
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north america
 
Oracle Apps - Forms
Oracle Apps - FormsOracle Apps - Forms
Oracle Apps - Forms
 
R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)
 
How to debug a fast formula
How to debug a fast formulaHow to debug a fast formula
How to debug a fast formula
 
Report Manager in Oracle EBS R12
Report Manager in Oracle EBS R12Report Manager in Oracle EBS R12
Report Manager in Oracle EBS R12
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching Form
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 

Andere mochten auch (18)

App designer2 in peoplesoft
App designer2 in peoplesoftApp designer2 in peoplesoft
App designer2 in peoplesoft
 
Ppt Of Peoplesoft
Ppt Of PeoplesoftPpt Of Peoplesoft
Ppt Of Peoplesoft
 
PeopleSoft 9.1 New Features
PeopleSoft 9.1 New FeaturesPeopleSoft 9.1 New Features
PeopleSoft 9.1 New Features
 
Oracle & PeopleSoft
Oracle & PeopleSoftOracle & PeopleSoft
Oracle & PeopleSoft
 
External Search Match
External Search MatchExternal Search Match
External Search Match
 
Application Engine ETL
Application Engine ETLApplication Engine ETL
Application Engine ETL
 
Air engine 2014
Air engine 2014Air engine 2014
Air engine 2014
 
News
News News
News
 
PeopleSoft Roadmap
PeopleSoft RoadmapPeopleSoft Roadmap
PeopleSoft Roadmap
 
Three tier Architecture of ASP_Net
Three tier Architecture of ASP_NetThree tier Architecture of ASP_Net
Three tier Architecture of ASP_Net
 
Devi
DeviDevi
Devi
 
SDLC
SDLC SDLC
SDLC
 
PPT1
PPT1PPT1
PPT1
 
Setids
SetidsSetids
Setids
 
Presentation2
Presentation2Presentation2
Presentation2
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architecture
 
Taleo for PeopleSoft users
Taleo for PeopleSoft usersTaleo for PeopleSoft users
Taleo for PeopleSoft users
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 

Ähnlich wie Application engine

Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and importiamluqman0403
 
AppSight 5.0 Advanced Concepts Training
AppSight 5.0 Advanced Concepts TrainingAppSight 5.0 Advanced Concepts Training
AppSight 5.0 Advanced Concepts TrainingDamian Rochman
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1Manoj Patil
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing FrameworksMoataz Nabil
 
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...Ajith Narayanan
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem slovingMani Kandan
 
Unit1 111206003944-phpapp02
Unit1 111206003944-phpapp02Unit1 111206003944-phpapp02
Unit1 111206003944-phpapp02riddhi viradiya
 
Computer programming and utilization
Computer programming and utilizationComputer programming and utilization
Computer programming and utilizationDigvijaysinh Gohil
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing TechniquesAppili Vamsi Krishna
 
Es_module2ppt.pptx
Es_module2ppt.pptxEs_module2ppt.pptx
Es_module2ppt.pptxRohanAM1
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP PerformancePeterHBrown
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 

Ähnlich wie Application engine (20)

Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and import
 
AppSight 5.0 Advanced Concepts Training
AppSight 5.0 Advanced Concepts TrainingAppSight 5.0 Advanced Concepts Training
AppSight 5.0 Advanced Concepts Training
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
SDLC
SDLCSDLC
SDLC
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
c programming 1-1.pptx
c programming 1-1.pptxc programming 1-1.pptx
c programming 1-1.pptx
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
Clontab webpage
Clontab webpageClontab webpage
Clontab webpage
 
Unit1 111206003944-phpapp02
Unit1 111206003944-phpapp02Unit1 111206003944-phpapp02
Unit1 111206003944-phpapp02
 
OOSE UNIT-1.pdf
OOSE UNIT-1.pdfOOSE UNIT-1.pdf
OOSE UNIT-1.pdf
 
Computer programming and utilization
Computer programming and utilizationComputer programming and utilization
Computer programming and utilization
 
Vedic Calculator
Vedic CalculatorVedic Calculator
Vedic Calculator
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
Test automation
Test automationTest automation
Test automation
 
Es_module2ppt.pptx
Es_module2ppt.pptxEs_module2ppt.pptx
Es_module2ppt.pptx
 
Chapter 1 - Prog101.ppt
Chapter 1 - Prog101.pptChapter 1 - Prog101.ppt
Chapter 1 - Prog101.ppt
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 

Kürzlich hochgeladen

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Kürzlich hochgeladen (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Application engine

  • 1. Application Engine D. Sree lakshmi EnvyTee InfoSoutions
  • 2. • Introduction to Application Engine. • Structure & Flow of an Application Engine Program. • Executing Application Engine Programs • Difference b/n AE and SQR
  • 3. • Application Engine is used for BATCH or ONLINE processing where you have a large (or small) amount of data that needs to be processed without user intervention. Technical Definition: • An AE program is a set of SQL statements, People Code, and Program Control Actions defined in Application Designer that performs a business process.
  • 4. • Application Engine programs reside completely within your database. • No Compilation required. • Database Flexibility. • Does not generate SQL or PeopleCode. • Built in Re-Start Logic. • Mostly used for SET based processing. • PeopleCode can be written. • AE program can be called from People Code.
  • 5.
  • 7. • Section Name (e.g. MAIN, etc) and Description • Market • Platform • Effective Date and Status • Auto Commit and Access Type
  • 8. • Section Name (e.g. MAIN, etc) and Description • Market • Platform • Effective Date • Effective Status : Active & Inactive • Auto Commit • Access Type
  • 9. • A Step represents the smallest unit of work that can be committed in a program. • When you first create a program, you have a default MAIN Section and Step, initially named Step01. • All programs require at least one Section, all Sections should contain at least one Step, and all Steps should contain at least one Action.
  • 10.
  • 11. Commit After • Default • Later • After Step On Error  Abort  Ignore  Suppress Frequency
  • 12. • Contains all the code of Application Engine Program. • There are eight types of Actions that you can include within a Step, and a Step can contain multiple Actions. • You can only include one of each Action type within a single Step. • The only mutually exclusive Actions within a single Step are Call Section and SQL Statement.
  • 13.
  • 14.
  • 15. Program Flow Actions Program Flow Actions are used to control the execution of your program. With these Action types you can control the execution of subsequent Sections, Action(s), or SQL statements depending on the results of a "Do" SQL statement in the form of a SELECT. Below are the four types of Program Flow Actions • Do When • Do While • Do Select • Do Until
  • 16. • The DO When Action is a SELECT statement that allows subsequent actions to be executed if any rows of data are returned. • This Action is similar to a COBOL "IF" statement. • A DO When statement runs before any other actions in the Step. • If the DO When statement returns any rows, the next Action will be executed. If the Do When conditions are not met, the remaining Actions within that Step are not executed. • Your program executes a DO When Action only once when the owning Step executes. www.itwisesolutions.com
  • 17. • The DO Select Action is a SELECT statement that executes subsequent Actions once for every row of data that the Do Select returns. • DO Select can execute a SQL statement for each row returned from the SELECT statement. The subsequent Actions within the Step are executed in a loop based on the results of the SELECT statement.
  • 18. 2.Do Select Type : • Select/Fetch Performs a Fetch for each iteration of the loop to get each row from the SELECT. • Re-Select It opens a cursor and fetches the first row. • Restartable It performs a Fetch on each iteration of the loop to get each row from the SELECT. It can be Restarted.
  • 19. Use a Do Until if you want the "processing actions" to execute at least once, and to execute over and over until a certain condition is true, such as until a SELECT returns some rows.
  • 20. PeopleCode Actions allow you to take advantage of IF-THEN logic, messaging, File Layouts, Component Interface and various other features all from within your Application Engine programs. Configurable Properties On Return : If your PeopleCode program provides a false result, you can have Application Engine respond by doing one of the following: • Abort The program issues an error and exits immediately. • Break The program exits the current Step and Section, and control returns to the calling Step. • Skip Step The program exits the current Step, and continues processing at the next Step in the Section.
  • 21. Use this Action if you want to perform the following SQL commands on multiple rows: • UPDATE • INSERT • DELETE • SELECT
  • 22. Configurable Properties 2.No Rows In the event that the SQL (INSERT, UPDATE, and DELETE) associated with the SQL Action does not return any rows, you need to specify what your Application Engine program should do. • Abort The program terminates. • Section Break Application Engine exits the current Section immediately, and control returns to the calling Step. • Continue The program continues processing. • Skip Step Application Engine exits the current Step immediately and moves on to the next Step.
  • 23. • Use the Call Section Action to Call Another Section defined in an Application Engine program. • You can call a (local) Section defined within your current program, otherwise Section MAIN would be the only Section executed. • Also you can make external calls to a Section defined in another Application Engine program. • The external Section you intend to call must have its Access property set to Public. • If a Section's Access property is set to Private, that Section can only be called from within the same program. • Call Section is the only supported way to call Application Engine programs or Sections from other Application Engine programs or Sections.
  • 24. • Use this type of Action to write a message to the Message Log. • The Message Log refers to the PeopleTools table PS_MESSAGE_LOG where execution messages reside. Configurable Properties • Message Set Identifies a message set within the Message Catalog. • Number Identifies a particular message within a Message Set. • Parameters A list of comma-delimited values to substitute for %1, %2, and so on markers in the message text.
  • 25.
  • 26. • The Application Engine State Record is the method by which you allocate variables for your Application Engine program. • It is also the method by which Section, Steps, and Actions pass values to subsequent program steps. • You can think of State Records in Application Engine as global variables without scope limiting rules. • Only one record can be the default State Record • Record Types as SQL and Derived/Work Records • Process Instance is the only key Field and is used for maintaining session • Notice the _AET naming convention
  • 27. • PeopleSoft batch applications employ the technique of SET processing, and set processing (in most cases) involves extensive use of temporary tables. • Temp Tables are used to store transient or intermediate results • Improve performance • Any Program
  • 28. • Making batch temp tables parallel processing aware o Instance count is the number of concurrent instances o Batch Temp tables = Sum of the instance count for each program a table is used o Naming convention PS_NAME_TMPnn
  • 29. • Set processing is a SQL technique used to process groups, or sets, of rows at one time rather than processing each row individually
  • 30. • Application Engine has the built-in ability to save a program state and restart where it stopped processing in the case of an abend.
  • 31. • To invoke or run an Application Engine program: • Process Scheduler • People Code • Command Line
  • 32.
  • 33.
  • 34. • CallAppEngine • To call a particular Application Engine program synchronously from a page using PeopleCode, you need to use the CallAppEngine() function in your SavePreChange or SavePostChange PeopleCode. • The basic syntax for CallAppEngine() is as follows: CallAppEngine(applid [, statereclist ]);
  • 35. Application Push Button AE Run Engine Process Process Process Scheduler Command Peoplecode Call PSAE.exe Logon Execute Retrieve AE Program AE Constructs Definitions PS Peoplecode Database Program Files Issue AE program SQL
  • 36. • Restart Facility • Inbuilt Tool • Graphical User Interface