Hi,
I believe, that I have found the problem.
You didn’t write what kind of errors/trouble you have. But the attachment helped me.
The plugin methode setDateToVariable should contain some formatting tags, in order to help you understanding.
Unfortunately this went wrong and the formatting tags are included in the java code 
Therefore, remove this tags (“[ b ]”,“[ /b ]”) out of your source, recompile it and than it should work.
The source should now look like:
public static String setDateToVariable(BusinessDocumentWorkspace ws, VariablesHandler variables) throws XException {
Date date = new Date();
String formatedDate = DateFormat.getDateInstance(DateFormat.LONG).format(date);
variables.setVariable("currentDate", formatedDate, "session");
return formatedDate;
}
By the way, have you registered the plugin method in you xapplication.xml file?
Bye
Thorsten
#API-Management#Tamino#webMethods