Semantic integration in complex systems: collective behavior in business rules and software transactions