Reputation: 4452
I have a number of sequences and they all work fine. Now realized that in almost all of them , I have repeating code which could be potentially reused . Mostly a few database calls and logging are repeating in every sequence. Only just some parameters changes. Its not business logic , mostly audit and logging stuff.So its good to resue them. How can i put them somewhere together and reuse them? What is the way to achieve it?Can another sequence do it? Or any other better ways?
I can put the variables in context and read it from that piece of code.
Upvotes: 0
Views: 71
Reputation: 142
You can create Sequence Templates and use the Mediator Call Template within your sequences.
So you can always call the templates and reuse their sequences.
Upvotes: 3