cancel
Showing results for 
Search instead for 
Did you mean: 

Unable merge documents

shagufta1
Champ in-the-making
Champ in-the-making
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
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
How are you calling the merge bean?

shagufta1
Champ in-the-making
Champ in-the-making
In my service task… Using expression property…

shagufta1
Champ in-the-making
Champ in-the-making
In my service task… Using expression property… And t1 & t2 are my document variable… ${documentMergeBean.mergeDocuments('t1,t2', 't3', execution)}

shagufta1
Champ in-the-making
Champ in-the-making
Any update?

balsarori
Champ on-the-rise
Champ on-the-rise
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>

shagufta1
Champ in-the-making
Champ in-the-making
Yep, With ";" it works fine… Thanks balsarori for your time… 🙂
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.