Hi everybody, I resolved my problem with radio button in workflow. I read the 
chapter 15.

Now I will to create a new folder with java. When I create e type of document = 
"Incarto" the event call the class with the method for create a new folder.

 

This is my code..but is not functionally.

 

DocumentModel model = context.getSourceDocument();



String tipo = model.getType();

System.out.println("Tipo " + tipo);

 



if(tipo.equals("Incarto"))

{ 

System.out.println("Creazione sotto cartelle");

System.out.println("Passo1");

DocumentModel docModel = documentManager.createDocumentModel(

"/default-domain/workspaces/incarto", "myfile", "File");

System.out.println("Passo2");

docModel.setPropertyValue("dc:title", "My File");

docModel.setPropertyValue("dc:description", "test");

System.out.println("Passo3");

docModel = documentManager.createDocument(docModel);

System.out.println("Passo4");

documentManager.save();

} 

 

Anyone can help me? Thank you
                                          
_________________________________________________________________
Windows Live: rendi più semplice per i tuoi amici vedere cosa stai facendo su 
Facebook.
http://www.microsoft.com/italy/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:it-it:SI_SB_2:092010
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to