2017-10-25 8 views
0

私は私のルートにプロパティを持っています。私はこのプロパティの値をいつでも変更したいと思います。私は私のルートでこれをどうやってすることができますか?ラクダのプロパティ値を更新するにはどうすればよいですか?

<route> 
    <setProperty propertyName="UpdateORInsert"> 
     <constant>INSERT</constant> 
    </setProperty> 

    <choice> 
    <when> 
     ------Change value of UpdateORInsert------- 
    </when> 
    </choice> 

</route> 

答えて

0
It can be done using simple component in your route inside `when`: 

    <route> 
     <setProperty propertyName="UpdateORInsert"> 
      <constant>INSERT</constant> 
     </setProperty> 
     <choice> 
     <when> 
      <simple>${Yourspecificcondition}</simple> 
     <setProperty propertyName="UpdateORInsert"> 
      <constant>UPDATE</constant> 
     </setProperty> 
     </when> 
     </choice> 
    </route> 
関連する問題