/** Angular2 */ import * as ng from "@angular/core"; /** Core */ import { CoreComponent, HostViewComponent, HostElementComponent } from "cmf.core/src/core"; import Cmf from "cmf.lbos"; /** Bags */ import { TransactionBag } from "./transactionBag"; import { TransactionEventArgs, TreatTransactionOutput } from "./transactionDef"; export declare class Transaction { protected prepareDataInput: string; protected prepareTransactionInput: string; protected handleDataOutput: string; protected handleTransactionOutput: string; protected transactionComponent: CoreComponent; protected baseComponent: CoreComponent; protected bag: TransactionBag; private transactionUtil; protected compiler: ng.Compiler; /** * @method constructor */ constructor(viewContainerRef: ng.ViewContainerRef, hostElementComponent: HostElementComponent, transactionComponent: HostViewComponent, compiler: ng.Compiler); /** * Treats the output received from the server inspecting for errors and feedback messages */ protected treatOutput(output: Cmf.Foundation.BusinessOrchestration.BaseOutput, exceptionScheme?: { exception: any; isRecuperableError?: boolean; }): TreatTransactionOutput; /** * When the base wizard is initiated. This is where we should load all input data required by the wizard. */ protected init(args: TransactionEventArgs): Promise; /** * Execute finish callback */ private executeFinishCallback; /** * When the base wizard is finished. Checks if the transaction requires signature before completing the transaction. */ protected finish(args: TransactionEventArgs): Promise; /** * This is where we should call the final service for the wizard and collect its results. * @param args The transaction event args */ private executeTransaction; }