How to upload a file alfresco with Bonita some reference code

1
0
-1

please a page with a manual upload files with alfresco through BonitaSoft not want to help me official since there is not much information

Thank You So Much

Comments

Submitted by Sean McP on Mon, 07/06/2015 - 07:06

first things first, what version of Alfresco?

As you will notice there are only connectors for 3.2 and 4.2. If you are using 5+ then you will have to write code, you could try to use CMIS connector but it might be easier overall to use REST which is supported by Alfresco

Sorry I have no code for that. See Links below.

There is no official word on this and I do not speak for BonitaSoft but I suspect the interface with Alfresco is being depreciated from both sides as Alfresco also has a competing BPM system

regards Seán

http://stackoverflow.com/questions/14689480/access-to-alfresco-rest-apis http://docs.alfresco.com/5.0/references/RESTful-intro.html

Submitted by davicleo.ortiz2 on Mon, 07/06/2015 - 20:05

Ok I understand it might help with a recommendation on this issue .

I need to connect these technologies and good conduct a suitable solution for customers

That Alfresco is advisable to work with the BonitaSoft in version 6.3.6

Submitted by Sean McP on Mon, 07/06/2015 - 20:12

what version Alfresco are you using?

Submitted by davicleo.ortiz2 on Mon, 07/06/2015 - 20:21

I'm using version 3.4 alfresco

This is the code I use

  1. import org.bonitasoft.engine.api.APIAccessor;
  2. import org.bonitasoft.engine.bpm.document.impl.DocumentImpl;
  3.  
  4. DocumentImpl d=apiAccessor.getProcessAPI().getDocumentAtProcessInstantiation(processInstanceId, "prueba");
  5. String tipo=apiAccessor.getProcessAPI().getDocumentAtProcessInstantiation(processInstanceId, "prueba").getContentMimeType();
  6. String nombre=apiAccessor.getProcessAPI().getDocumentAtProcessInstantiation(processInstanceId, "prueba").getName();
  7. String algo=apiAccessor.getProcessAPI().getDocumentAtProcessInstantiation(processInstanceId, "prueba").getContentFileName();
  8. File doc=new File("c:/archivos"+algo);
  9. def byte[] myByte = apiAccessor.getProcessAPI().getDocumentContent(d.getContentStorageId());
  10. doc.delete()
  11. doc.withOutputStream { s ->
  12. s << myByte
  13. }
  14.  
  15. return doc.absolutePath;
1 answer

1
0
-1

Ok I understand it might help with a recommendation on this issue .

I need to connect these technologies and good conduct a suitable solution for customers

That Alfresco is advisable to work with the BonitaSoft in version 6.3.6

Notifications