Foren

Liferay sync for multi-step Workflows of documents in Liferay 7

eric smith, geändert vor 7 Jahren.

Liferay sync for multi-step Workflows of documents in Liferay 7

New Member Beiträge: 4 Beitrittsdatum: 03.11.16 Neueste Beiträge
We're looking into creating a multi-step workflow for documents using Liferay 7 CE, and would like to use Liferay sync as well.

Basically, we'd like to implement a multi-stage approval on a document (with rejection capabilities). Then have editing documents done using Liferay sync.

Has anyone done something like this? Can we use Liferay Sync, or do I need to rely on users uploading document updates manually?
thumbnail
Jamie Sammons, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

Expert Beiträge: 297 Beitrittsdatum: 05.09.14 Neueste Beiträge
Hi Eric,

Liferay Sync adhere's to how the Document Library is configured. So if you are using a multi-step workflow with your documents then Liferay Sync has to follow that and any other configurations you have in place such as custom permissions.

Hope that helps,
Jamie
eric smith, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

New Member Beiträge: 4 Beitrittsdatum: 03.11.16 Neueste Beiträge
Jamie,

Thanks for the reply.

I was testing how Liferay sync handled permissions on documents. I created a document in Liferay, and Liferay sync worked as expected (and allowed me to update it). Then I tried changing permissions on the document so that the user Liferay sync uses didn't have read or write access to the document.

However, the document was not removed from my Liferay sync folder (as I would expect). When I edited the document, it errorred when trying to sync, which is good. But I was expecting the document to disappear (be deleted) because the user didn't have read or write access to it. Do you know why it didn't disappear?
thumbnail
Shinn Lok, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

Junior Member Beiträge: 89 Beitrittsdatum: 14.01.11 Neueste Beiträge
Hi Eric,

Revoking permissions should result in the deletion of the file on the client. Can you retry the scenario with another file and see if it still doesn't delete? If it doesn't, can you send us the steps to reproduce as well as your logs?

1. Click the sync tray icon
2. "Preferences"
3. "General" tab
4. "save logs" on the bottom right

You can either attach it here or send to sync@liferay.com.
eric smith, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

New Member Beiträge: 4 Beitrittsdatum: 03.11.16 Neueste Beiträge
Sorry for the slow response, it took a while to find the time to retry everything. I think what happened originally was that I didn't wait long enough, or maybe I followed slightly different steps because I wasn't able to recreate exactly what I described. However, I did recreate a similar scenario where I expected a user to have a document synced and it wasn't. here are the steps (and attached is the Liferay sync log):

Steps
- Install Liferay sync 3.4.0
- Unzip liferay-ce-portal-tomcat-7.0-ga3-20160804222206210.zip
- Run liferay-ce-portal-7.0-ga3\tomcat-8.0.32\bin\startup.bat
- Navigate to localhost:8080 (Google Chrome)
- Finish Configuration, agree to terms
- test@liferay.com: test
- Create 2 users: user1@liferay.com, user2@liferay.com
- Create user groups: users -> user groups: group1 (user1), group2 (user2)
- Create 2 roles, and assign users: role1 (user1), role2 (user2)
- Define permissions for role1, role2: Documents and media -> documents: add doc, permissions, update, view
- Add users to Liferay site membership
- Add asset publisher to main page
- Login as both users, setup passwords
- login as user1, add basic document (text file) to asset publisher, logout
- Launch Liferay sync 3.4.0
- Sync folders to local user1folder using user1
- Sync folders to local user2folder using user2
- In user1folder, edit synced file locally
- Wait a bit until Liferay sync has a 'synced' status for user1
- Login as user1, download document, verify local changes took affect
- Login as admin, clear all permissions from document, logout
- Refresh sync directories and verify Liferay sync is 'synced', notice file is gone (expected)
- Login as admin, add all permissions on document to role2, logout
- At this point I would expect user2 to have full permissions on the document, and for it to show up in user2folder
- Wait a bit and verify Liferay sync is 'synced'
- Go to user2 synced directories, document is not listed (unexpected)
- Login as user2, document is listed in asset publisher (and is editable)
- Quit Liferay sync and restart Liferay sync, document still not listed (unexpected)

Any ideas why this didn't work as I expected (user2 getting access to the document), or is this behavior expected?

Thanks.
thumbnail
Shinn Lok, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

Junior Member Beiträge: 89 Beitrittsdatum: 14.01.11 Neueste Beiträge
Thanks for your detailed steps and logs. It looks we fixed the issue that you are describing recently:

https://issues.liferay.com/browse/SYNC-1696

It should be available in the next release.
eric smith, geändert vor 7 Jahren.

RE: Liferay sync for multi-step Workflows of documents in Liferay 7

New Member Beiträge: 4 Beitrittsdatum: 03.11.16 Neueste Beiträge
Looks like the same issue.

Thanks, I'll try again after the next release.