Unable merge documents
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 04:08 AM
I am trying to merge 2 documents in my workflow. I am using documentMergeBean but it doesn't merge the documents. I can see following logs in my tomcat console,
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - fieldIds t1,t2, variable t3 305347
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - contentList 1000
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - field t2
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - putting t2 1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - field t1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - putting t1 1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - finalContentList 0
I am following developer guide :
https://docs.alfresco.com/activiti/docs/dev-guide/1.4.0/#_document_merge_bean_documentmergebean
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - fieldIds t1,t2, variable t3 305347
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - contentList 1000
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - field t2
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - putting t2 1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - field t1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - putting t1 1
INFO com.activiti.runtime.activiti.bean.DocumentMergeBean - finalContentList 0
I am following developer guide :
https://docs.alfresco.com/activiti/docs/dev-guide/1.4.0/#_document_merge_bean_documentmergebean
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 12:53 PM
How are you calling the merge bean?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2016 12:10 AM
In my service task… Using expression property…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2016 12:15 AM
In my service task… Using expression property… And t1 & t2 are my document variable… ${documentMergeBean.mergeDocuments('t1,t2', 't3', execution)}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2016 08:40 AM
Any update?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 01:30 PM
Use semicolon to separate between field ids not a comma (there is a typo in developer guide documentMergeBean example). So, your expression should look as follows
<code>
${documentMergeBean.mergeDocuments('t1;t2', 't3', execution)}
</code>
<code>
${documentMergeBean.mergeDocuments('t1;t2', 't3', execution)}
</code>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 02:53 AM
Yep, With ";" it works fine… Thanks balsarori for your time… 🙂
