I have defined a custom action that is triggered by a rule. RuleType=INBOUND
CIFS is enabled on the system.
When i add new content via nodeService.createNode the node gets created, the custom action is triggered, and the file becomes visible via cifs. The file size = 0, as no content has been loaded yet.
Then i add content via writer.putContent(file).
The custom action is triggered.
Then i check the lenth of the content written to the newly created document via.
ContentReader reader = contentService.getReader(actionedUponNodeRef, ContentModel.PROP_CONTENT);
reader.getSize() returns a non null value as expected.
When i look at the file size in CIFS, this remains 0, till the custom action completes.
My problem is that i have a need to read this file via CIFS, before the action completes.
This file is of a type, unknown to Alfresco and can only be read by an external program, that only can read files by using cifs.
How can i work arount this?