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:
14
tasks_gen/train/G1011/seed/i_repair_charge.ddls.asddls
Normal file
14
tasks_gen/train/G1011/seed/i_repair_charge.ddls.asddls
Normal file
@@ -0,0 +1,14 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Repair charge per customer'
|
||||
define view entity {{P}}I_REPAIR_CHARGE
|
||||
as select from {{p}}job as job
|
||||
inner join {{p}}rate as rate on rate.shoe_type = job.shoe_type
|
||||
{
|
||||
key job.customer as customer,
|
||||
count( * ) as job_count,
|
||||
sum( job.pairs ) as total_pairs,
|
||||
sum( cast( job.pairs as abap.dec( 10, 0 ) ) * rate.price ) as total_charge
|
||||
}
|
||||
where job.job_state = 'D'
|
||||
group by
|
||||
job.customer
|
||||
14
tasks_gen/train/G1011/seed/job.tabl.asabap
Normal file
14
tasks_gen/train/G1011/seed/job.tabl.asabap
Normal file
@@ -0,0 +1,14 @@
|
||||
@EndUserText.label : 'Repair job'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}job {
|
||||
key client : abap.clnt not null;
|
||||
key job_id : abap.char(10) not null;
|
||||
customer : abap.char(10);
|
||||
shoe_type : abap.char(4);
|
||||
repair_type : abap.char(4);
|
||||
pairs : abap.int4;
|
||||
job_state : abap.char(1);
|
||||
}
|
||||
11
tasks_gen/train/G1011/seed/rate.tabl.asabap
Normal file
11
tasks_gen/train/G1011/seed/rate.tabl.asabap
Normal file
@@ -0,0 +1,11 @@
|
||||
@EndUserText.label : 'Repair rate'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}rate {
|
||||
key client : abap.clnt not null;
|
||||
key shoe_type : abap.char(4) not null;
|
||||
key repair_type : abap.char(4) not null;
|
||||
price : abap.dec(15,2);
|
||||
}
|
||||
34
tasks_gen/train/G1011/seed/seed_repair.clas.abap
Normal file
34
tasks_gen/train/G1011/seed/seed_repair.clas.abap
Normal file
@@ -0,0 +1,34 @@
|
||||
CLASS {{p}}seed_repair DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}seed_repair IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DATA lt_job TYPE STANDARD TABLE OF {{p}}job WITH EMPTY KEY.
|
||||
DATA lt_rate TYPE STANDARD TABLE OF {{p}}rate WITH EMPTY KEY.
|
||||
|
||||
lt_job = VALUE #(
|
||||
( job_id = 'J1' customer = 'C1' shoe_type = 'BOOT' repair_type = 'SOLE' pairs = 2 job_state = 'D' )
|
||||
( job_id = 'J2' customer = 'C1' shoe_type = 'SHOE' repair_type = 'HEEL' pairs = 1 job_state = 'D' )
|
||||
( job_id = 'J3' customer = 'C2' shoe_type = 'BOOT' repair_type = 'SOLE' pairs = 3 job_state = 'D' )
|
||||
( job_id = 'J4' customer = 'C3' shoe_type = 'BOOT' repair_type = 'SOLE' pairs = 1 job_state = 'O' )
|
||||
( job_id = 'J5' customer = 'C2' shoe_type = 'BOOT' repair_type = 'HEEL' pairs = 1 job_state = 'D' )
|
||||
( job_id = 'J6' customer = 'C4' shoe_type = 'SANDAL' repair_type = 'STRAP' pairs = 2 job_state = 'D' ) ).
|
||||
|
||||
lt_rate = VALUE #(
|
||||
( shoe_type = 'BOOT' repair_type = 'SOLE' price = '12.50' )
|
||||
( shoe_type = 'BOOT' repair_type = 'HEEL' price = '6.25' )
|
||||
( shoe_type = 'SHOE' repair_type = 'HEEL' price = '4.00' )
|
||||
( shoe_type = 'SHOE' repair_type = 'SOLE' price = '3.75' )
|
||||
( shoe_type = 'SANDAL' repair_type = 'STRAP' price = '5.00' ) ).
|
||||
|
||||
DELETE FROM {{p}}job.
|
||||
DELETE FROM {{p}}rate.
|
||||
INSERT {{p}}job FROM TABLE @lt_job.
|
||||
INSERT {{p}}rate FROM TABLE @lt_rate.
|
||||
|
||||
out->write( |Jobs: { lines( lt_job ) }, rates: { lines( lt_rate ) }| ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user