Files
fflib-apex-extensions/sfdx-source/apex-extensions/tests/classes/MyTest.cls
T
wimvelzeboer 5357cd1189 Trigger Handler functionality
A trigger handler based on trigger actions configured via custom metadata. It separates the trigger logic per class, and is utilizing the fflib_UnitOfWork to execute the trigger actions.

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-10-27 16:04:27 +01:00

46 lines
786 B
OpenEdge ABL

/**
* File Name: MyTest
* Description:
*
* @author: architect ir. Wilhelmus G.J. Velzeboer | wvelzebo@its.jnj.com
*/
public with sharing class MyTest
{
public class WorkA extends fflib_DoWork
{
public void doWork()
{
System.debug('Work A executing');
insert new fflib_LogEntry__c(
LogLevel__c = 'INFO',
Message__c = 'WorkA'
);
}
}
public class WorkB extends fflib_DoWork
{
public void doWork()
{
System.debug('Work B executing');
insert new fflib_LogEntry__c(
LogLevel__c = 'INFO',
Message__c = 'WorkB'
);
}
}
public class WorkC extends fflib_DoWork
{
public void doWork()
{
System.debug('Work C executing');
insert new fflib_LogEntry__c(
LogLevel__c = 'INFO',
Message__c = 'WorkC'
);
}
}
}