cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch files from Alfresco to Activiti Mobile App

hari
Star Contributor
Star Contributor
Hi there,

We are currently evaluating Activiti Enterprise and have a few questions on how to implement the scenarios at hand.

Scenario: We have a set of processes which takes approvals from various users like Managers, CFO's, CEO's on documents that were uploaded into Alfresco.

Q1) Is there a possibility for the users to use the Activiti Android App to connect and download the files which are part of the their tasks ?
      - The processes which we currently have hold the DocumentID's of the files uploaded into alfresco. So I want to display them and allow the users to download and approve.

Q2) If the above one is possible. Is it the "Attach" element of the form which needs to be used for this ? And how to configure it ? 

Q3) I have a trial version of enterprise currently installed on my machine and have tried to configure the community version of Alfresco which we are using. I went to the Tenants and added the alfresco repository but I do not see this anywhere to connect (Like not in my forms or not in my processes) So am I configuring it correctly here ?
1 REPLY 1

jm_pascal1
Champ in-the-making
Champ in-the-making
Hello,

Partial response following:

Q3)
Defining Alfresco / Activiti integration is done in 3 main step.
1. Setup Alfresco One with Admin
+ Connect with Admin role in Activiti Web App.
+Tap Identity management App
+ Select Tenants > Alfresco Repositories Tab > + Button
+ Fill the form and save

2. Sign In with your user  (admin in this case)
+ Connect with Admin role in Activiti Web App.
+ Tap Identity management App
+ In Personal > Alfresco Repositories > Select the alfresco account and fill the authentification form.

3. Create a task and attach document from Alfresco
+ Connect with Admin role in Activiti Web App.
+ Select Task App
+ Tap  Create Task Button and fill the form
+ On Task details, select Add ad document.
+ Now you should see an Alfresco Logo that allow you to add document from Alfresco.

For More information:
https://docs.alfresco.com/activiti/docs/admin-guide/1.4.0/#_alfresco_one

Q2)
In Kickstart App the attach field is indeed the one to use to make a relation between Alfresco and Activiti form.
To setup this field
+ just add it to the form via drag & drop
+ tap the pen icon next to the field
+ select attach options tab
+ Tap the File Source field and select the alfresco repository you already defined (as previously mentionned)
+ Optionnaly you can define if you want to attach it as attachment (so the content is attached to Activiti Process) or attach as a link (the content remains in Alfresco)
+ Save the form
+ Next use this form with a specific task or process.

Q1) The Android Activiti app is able to download document from Alfresco/Activiti if the attach field form is used. If the documentID is stored as a simple "plain text field" the app will not able to link this Ids with Alfresco and then not able to download it.

Extra information: It's also possible to install the Alfresco Android App from the Google Play Store and use it in conjunction with the Activiti Android App. The only requirement is the account associated to the Alfresco Android App should be the same as the Alfresco one defined in Activiti Web app.
With this conjunction you will be able to
+ Attach document (as link or attachment) from Alfresco to an Activiti task or process
+ If an attachment is an Alfresco Link it's possible to Open Document Details directly from the Alfresco Android App. It allows you to retrieve metadata and others Alfresco Services directly from the app.

Hope it helps.