We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Today, if you want to be able to start an action, you 've to :
Most simple example is thus :
@bootstrapApp({ db : { mongo: { url: dbUrl } } }) export class ExampleApp extends ActionApp{ declare = [CiPipeline, PrintAction, WaitAction] } ActionApp.waitForActiveApp.then(()=>{ console.log("waitforactive app") ActionApp.activeApp.ActionModel.findOne({ filter : { main : true } }).then((actionDb)=>{ console.log("actionDbFinding") if(actionDb){ const pipeline = Action.constructFromDb(actionDb); return pipeline.resume(); } //create main action const pipeline = new CiPipeline(); pipeline.setFilter({ main : true }) pipeline.dbDoc.save(); }) })
We want this to be shorten
The text was updated successfully, but these errors were encountered:
One solution can be, in order to remove the app part, to use decorator : On every action, we would do :
@registerAction export class MyAction extends Action{ }
Then on the index file, we would only need to do :
new App({url : ....}) const myAction = new MyAction(); myAction.resume();
Sorry, something went wrong.
No branches or pull requests
Today, if you want to be able to start an action, you 've to :
Then you can resume the action.
Most simple example is thus :
We want this to be shorten
The text was updated successfully, but these errors were encountered: