I am new to mirth and I want the "After processing Action" in source to perform only if the rule in the source filter satisfies for a channel.
You can do this by applying a filter in Destination channel.
Add JavaScript code as below.
For example you want to filter all message other than ADT then add a condition as below.
if(msg['MSH']['MSH.9']['MSH.9.1'].toString() != "ADT")
{
return false;
}
So this code will send only ADT message to Destination and all other messages are filtered.