Pipeline controller: plan 2 (hard +, error +50 %), backlog throttle, 2 trajectory workers, stop rules, summaries every 50; budget reserve

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 13:35:54 +02:00
parent 1c4667a0fc
commit 13360292dd
781 changed files with 50211 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Film revenue'
define view entity {{P}}I_FILM_REVENUE
as select from {{p}}screen as s
inner join {{p}}ticket as t on t.show_id = s.show_id
{
key s.show_id as show_id,
s.film as film,
count( * ) as ticket_count,
sum( t.price ) as revenue
}
where s.status = 'A'
group by
s.show_id,
s.film

View File

@@ -0,0 +1,13 @@
@EndUserText.label : 'Screening'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}screen {
key client : abap.clnt not null;
key show_id : abap.char(10) not null;
film : abap.char(10);
show_date : abap.dats;
hall : abap.char(4);
status : abap.char(1);
}

View File

@@ -0,0 +1,28 @@
CLASS {{p}}seed_cinema DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS {{p}}seed_cinema IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
DELETE FROM {{p}}screen.
DELETE FROM {{p}}ticket.
INSERT {{p}}screen FROM TABLE @( VALUE #(
( show_id = 'S1' film = 'F1' show_date = '20250101' hall = 'H1' status = 'A' )
( show_id = 'S2' film = 'F1' show_date = '20250102' hall = 'H2' status = 'A' )
( show_id = 'S3' film = 'F2' show_date = '20250101' hall = 'H1' status = 'A' )
( show_id = 'S4' film = 'F3' show_date = '20250103' hall = 'H1' status = 'C' )
( show_id = 'S5' film = 'F4' show_date = '20250104' hall = 'H1' status = 'A' )
) ).
INSERT {{p}}ticket FROM TABLE @( VALUE #(
( show_id = 'S1' ticket_no = 1 price = '10.00' )
( show_id = 'S1' ticket_no = 2 price = '10.00' )
( show_id = 'S2' ticket_no = 1 price = '12.50' )
( show_id = 'S3' ticket_no = 1 price = '8.00' )
( show_id = 'S4' ticket_no = 1 price = '9.00' )
) ).
out->write( 'Seed data inserted.' ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,11 @@
@EndUserText.label : 'Ticket'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}ticket {
key client : abap.clnt not null;
key show_id : abap.char(10) not null;
key ticket_no : abap.int4 not null;
price : abap.dec(15,2);
}