Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Help wanted with workflow attachments
x-bcuser1_-_(deleted)
Is there any (Java) sample-code how to attach a document to a workflow??It would be a great help!Thnx
Find more posts tagged with
Comments
Richard_Ma_(mtrcadmin_-_(deleted))
Do you want to attach documents during workflow initiation?though LAPI documentation suggests to use the "additions" to include the attach documents ID as ListStartWorkflow( LLValue map, String name, LLValue additions, LLValue workID )but there is a limitation to this method. If there are two documents with same filename, Livelink error will occur.So i prefer to use this way- get the workflow attachment folder ID- use LAPI_DOCUMENT.CopyObject() to copy the document to the folder- if CopyObject() return 100604, it means the filename already exists, CopyObject() again using a different filename- DONE, set "additions" in StartWorkFlow() to nullUsing this way, assume the document is in Livelink.Hope this way help you.This is my way to handle, maybe not the best way, but works.