Inetgration with NextCloud

Hi Camunda Support team,

We are integrating Camunda with NextlCloud and we are unable to find any authentic link where we could check the sampling of this work. We have searched all in your community forums but no such sample is available that could show how the connetcivity is being established between Camunda and NextCloud.

We would like your assistance in this regard as we are planning to purchase for enterprise use but first we need to evaluate if workflow cases of Camunda are working fine while integrated with NextCloud.

Looking forward for your swift response.

Regards,

Umair Tariq
Email: umair.tariq@ibexglobal.com

If you’re interested in getting help from Camunda Support then you can send a request using this page:

I have same issues of nextcloud and camunda Integration.anyone suggest me…

Though I should probably throw this into git here is a code snippet of something I did a while back
package org.jp.camunda.demo;

import com.github.sardine.Sardine;
import com.github.sardine.SardineFactory;
import java.io.FileOutputStream;
import java.net.URLDecoder;

import org.apache.commons.io.IOUtils;
import org.apache.tika.Tika;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.engine.variable.value.FileValue;

public class SendFileToNextcloud implements JavaDelegate {

public void execute(DelegateExecution execution) throws Exception {

    Sardine sardine = 
SardineFactory.begin("your user name", "your password");

    FileValue fileVariable = 
execution.getVariableTyped("sampleDocument");

    System.out.println("File name is "+fileVariable.getFilename());
    byte[] data = IOUtils.toByteArray(fileVariable.getValue());

    execution.setVariable("byteData", data);

    Tika tika = new Tika();
    String type = tika.detect(data);
   
    execution.setVariable("fileName", fileVariable.getFilename());
    execution.setVariable("type", type);

    System.out.println("type - "+type+", name - "+ 
fileVariable.getFilename());
    FileOutputStream outputStream = new 
FileOutputStream
("./target/classes/static/"+fileVariable.getFilename( ));
outputStream.write(data);
}
}
package org.jp.camunda.demo;

import com.github.sardine.DavResource;
import com.github.sardine.Sardine;
import com.github.sardine.SardineFactory;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.engine.variable.Variables;
import org.camunda.bpm.engine.variable.value.FileValue;

import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.List;

public class GetFileFromNextcloud implements JavaDelegate {

    public void execute(DelegateExecution execution) throws 
Exception {

    Sardine sardine = SardineFactory.begin("your user name", "your password");
    InputStream is = sardine.get("URL of the file");
    FileValue typedFileValue = Variables
            .fileValue("flyer.pdf")
            .file(is)
            .create();

    execution.setVariable("fileVariable", typedFileValue);

    }
}

Are there any news here? Any testable github repo or sth. like that?
Would really like to check it out and test it.

Keep the fingers crossed :crossed_fingers:

Uwe

1 Like

Hi Camunda Support team,

We are checking the possibilities to integrate Camunda with NextlCloud and we are trying to find a demo for this. We have searched all in your community forums but no such sample is available that could show how the connetcivity is being established between Camunda and NextCloud.

We would like your assistance in this regard as we are planning to purchase for enterprise use but first we need to evaluate if workflow cases of Camunda are working fine while integrated with NextCloud.

Looking forward to hear from you.

Regards,
Sangeetha