I’m not familiar with the ecommerce repository, so it is hard to answer your question. I understand that a sample would be nice, but the general idea is I described earlier:
- Store the state of an individual workflow in its variables.
- Use workflow query functionality to query data about a specific workflow.
- Use DB to store records needed for listing workflows and aggregating data across them.
- Use activities (consider using local activities) to update these records.