Ok, I finally finished my custom command. For those wondering how to pass 
parameters from the workflow xml to the java class and contrariwise, here is 
how to do it:

[code]
<!-- set value in xml -->
<set field="myField" value="myValue"/>

//retrieve value in java
String myField = (String) ctx.get("myField");

//inject value into xml from java
ctx.put("myEditedField", "myEditedValue");

<!-- access value in xml -->
${field:myEditedField}
[/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=d60747a7-0a77-4f57-99ce-09ec77d7d6e6


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to