You can use inbound adapter services and outbound adapter services to work with messages in a group.
For a logical unit of work, you can retrieve inbound messages in a group and also categorize outbound messages as part of a group. For detailed instructions on how to retrieve messages in a group and how to categorize messages as part of a group, see
Working with Messages in a Group.