-
1. Re: How to add information to the payload
tadayosi Sep 12, 2012 9:23 AM (in response to menjivar88)1 of 1 people found this helpfulBasically, you just need to call message.getBody().get() to get the payload and message.getBody().add(...) to update information to the payload.
-
2. Re: How to add information to the payload
menjivar88 Sep 25, 2012 7:56 PM (in response to tadayosi)hi, that really helped me.
i'm using a file system provider ans passing to it txt files,when i get the payload of a message i got something like: B@1321163
but i want the file's content, in my custom class i have:
@Process
public void printMensajeInfo(@BodyParam String Payload, Message message) {
System.out.println("-------PAYLOAD----");
System.out.println(Payload);
System.out.println("-------MESSSAGE----");
System.out.println(message.getBody().get());
System.out.println("-----------------------------------------------");
}
how can i get the file's content instead of that B@1321163 ??
Regards
Carlos
-
3. Re: How to add information to the payload
tcunning Sep 26, 2012 10:32 PM (in response to menjivar88)1 of 1 people found this helpfulCheck out the helloworld_file_action quickstart. I think the MyAction action does exactly what you are describing.
-
4. Re: How to add information to the payload
menjivar88 Sep 27, 2012 12:35 AM (in response to tcunning)Hi Tom, thanks for your reply i will take a look to that quickstart
Regards
Carlos