Hello,I start a workflow on a folder with java code like this
NodeRef wfPackage = ServiceHelper.workflowService.createPackage(folderRef); // folderRef is a nodeRef to a folder
…
workflowProps.put(WorkflowModel.ASSOC_PACKAGE, wfPackage);
…
workflowService.startWorkflow(workflowId, parameters);
The workflow is well started and I can see each documents contained in the folderRef but when I want to add some document in the bpm package, I have this error:07170034 Found 1 integrity violations:
The association source type is incorrect:
Source Node: workspace://SpacesStore/52fe26f3-7221-4a5f-9cf3-a87d2f6082b0
Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/bpm/1.0}package], name={http://www.alfresco.org/model/bpm/1.0}packageContains, target class={http://www.alfresco.org/model/system/1.0}base, source role=null, target role=null]
Required Source Type: {http://www.alfresco.org/model/bpm/1.0}package
Actual Source Type: {http://www.alfresco.org/model/content/1.0}folderSomedbody has an issue?Thank you for help!