TxJob::execute
Run all component one after the other, TxTask is passing between components, the output of a component is the input of the next component.
arguments
TxTask: an object including your data
options: a directive to execute
until: {util: 'GITHUB::GIST::C2'} run until component GITHUB::GIST::C2 then stop. use continue to resume the process.
usage
let C1 = new C1Component();
let C2 = new C2Component();
let C3 = new C3Component();
// NOTE: you can use Symbols as well (see TxJob above).
let job = new TxJob(); // or create througth the TxJobRegistry
job.add(TxMountPointRegistry.instance.get('GITHUB::GIST::C1'));
job.add(TxMountPointRegistry.instance.get('GITHUB::GIST::C2'));
job.add(TxMountPointRegistry.instance.get('GITHUB::GIST::C3'));
job.execute(new TxTask(
'create',
'',
{something: 'more data here'})
);
Last updated