The following code example shows a pipeline definition that is automatically generated when a new pipeline is created using the Management UI.
<pipe-definition>
<start-channel>
<transition to="testchannel" />
</start-channel>
<channel name="testchannel" type="testchannel" configId="TestChannel"
invocationStyle="sync">
<transition to="router" />
</channel>
<router name="router" type="router"
expression="if(message.body.extra.testchannel.equals('testchannel')){
channel='samplechannel'; }else{ channel='testchannel1'; }" />
<channel name="testchannel1" type="testchannel" configId="TestChannel"
invocationStyle="sync"></channel>
<channel name="samplechannel" type="samplechannel" configId="SampleChannel"
invocationStyle="sync">
<transition to="childrouter" />
</channel>
<router name="childrouter" type="router"
expression="if(message.body.extra.testchannel.equals('testchannel')){
channel='staging';
}else{
channel='testchannel2';
}" />
<channel name="staging" type="staging" configId="UMStaging"
invocationStyle="sync"></channel>
<channel name="testchannel2" type="testchannel" configId="TestChannel"
invocationStyle="sync"></channel>
</pipe-definition>
No comments:
Post a Comment