Hi
I have a custom class which implement "IDfModule" And "IDfMethod" like this
public class MethodExecutor implements IDfMethod , IDfModule{
@Override
public int execute(Map map, PrintWriter printWriter) throws DfException {
System.out.println("Entry In : " + this.getClass() + " Method Execute");
Iterator iter = map.entrySet().iterator();
while(iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
System.out.println(entry.getKey() + " ------> " + entry.getValue());
}
System.out.println("Exit From : " + this.getClass() + " Method Execute");
return 0;
}
}
In composer i created JAR definition for this class . I created standard module and specified this JAR over there selected above class.
then created method artifact and specified exact name of standard module in methods Command field.
Installed it in D2 repository.
In D2 created a Lifecycle and in 2nd state of lifecycle in "Action Type " selected "Apply Method" option from drop down list,
passed argument to this method like wise "-arg1 Mayur" . Configured lifecycle to corresponding document set .
When i created a document using D2-Client and promoting this document to 2nd state of lifecyle , I supposed to get those println statements in JMS log , But i am not getting those println statement , So is above method correct for executing custom method in D2 or not ,
If not then how to do it
Regards
Mayur Mitkari