[Webwork-user] Action chaining
Brought to you by:
baldree,
rickardoberg
From: Patrick L. <pli...@ho...> - 2002-06-25 20:44:17
|
(Sent this to Matt, but I think the whole list should see it) By the way, action chaining really is huge (finding more and more cool stuff to do with it today). Think of this, developers can start building actions that can be arbitrality chained together, creating a mini-workflow of sorts. For example: (a form submits to CreateDocumentValidate.action) CreateDocumentValidate.action=DocumentValidator CreateDocumentValidate.error=create.jsp CreateDocumentValidate.success=BeginTransaction.action BeginTransaction.action=BeginTransaction BeginTransaction.success=CreateDocument.action CreateDocument.action=CreateDocument CreateDocument.error=RollbackTransaction.action CreateDocument.success=CommitTransaction.action RollbackTransaction.action=RollbackTransaction RollbackTransaction.success=create_error.jsp CommitTransaction.action=CommitTransaction CommitTransaction.success=create_success.jsp Now this is maybe _too_ broken up, but the idea is there. I could then take the classes CommitTransaction, RollbackTransaction, BeginTransaction, and DocumentValidator and use them in a mini-workflow that assists with updating a document instead of creating it. The possibilities are really quite endless. -Pat |