[Schevo-devel] transactions returning transactions

Patrick K. O'Brien pobrien at orbtech.com
Fri Nov 18 10:28:43 EST 2005


Matthew Scott wrote:
> I'm toying with the idea of transactions being able to return transactions.
> 
> Here's the scenario I'd like to see:
> When creating an invoice, I'd like it to be pre-populated with a
> unique, incrementing counter that is not tied to the OID.  Therefore,
> a transaction has to occur to increment the counter, which would then
> populate another transaction that would have the invoice number
> already populated, as a read-only field.
> 
> Here's the rough implementation:
> - if a transaction is chosen in the navigator that doesn't have any
> fields, it is executed immediately
> - if a transaction execution returns another transaction, it appears
> in the navigator

While I think this idea might be interesting and powerful, I think there
might be a simpler solution to this particular use-case.  Couldn't you
just execute the counter-incrementing transaction in the _setup() method
for the invoice-creation transaction?

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org




More information about the Schevo-devel mailing list