Project: mule
Issue MULE-8457: Replace SetPayloadTransformer with a plain message processor
SetPayloadTransfomer is the implementation behind set-payload element. As the name implies, is a Transformer and is executed invoking muleMessage transformation capabilities. Problem with this transformer is that it returns only a value and in order to properly propagated message's dataType, it must set the correct dataType (the one configured by the user). Besides that, transfomer's source/target dataType is not valid on this particular case, because the datatpye is dynamic (assigned value can be resolved from an expression). So dataType can't be statically defined.
Story points: 5