Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Problem getting the list of Comments from WorkPackage (AccessWorkPackage)
Julia_Kuznetsov_(modususer1_-_(deleted))
I need to get a list of Comments for an Workflow Instance and add a new comment.1. I'm getting WorkPackage RecArray by calling AccessWorkPackage2. I'm retrieving the rec with SUBTYPE = 2 that should correspond to Comments rec3. I'm getting the USERDATA from this record into a List variableBut this USERDATA is 'Undefined' even though I manually added a comment to this workflow.Is this a bug in LAPI - comments are not returned from AccessWorkPackage?Here is my code:LLValue workPackage = ( new LLValue()).setAssocNotSet();retval = wf.AccessWorkPackage(WorkID, WorkID, workPackage );LLValue rec = ( new LLValue()).setAssocNotSet();LLValue listComments = ( new LLValue()).setList();for (int j = 0; j < workPackage.size(); j++) { rec = workPackage.toValue(j); if (rec.toInteger("SUBTYPE") == 2) {//comments listComments = rec.toValue ("USERDATA"); break;} }Please Help,Julia Kuznetsov
Find more posts tagged with
Comments
Ann_Minton
What version of Livelink/LAPI are you using?
John_Rizzo_(fedinvestadmin_-_(deleted))
Julia,Below is a response from Open Text regarding your problem. They opened a bug. I also reported a bug with LAPI not returning form information from a workflow and it is bug # 1730780 David, I have done some testing and it does look like there is a bug with returning comments in a workflow. This field in the UserData always seems to be undefined. I have entered a bug and the bug # is 1730636. If you want to check up on this bug just reference this bug number. As for the form data, you can access this the same way you access the CatVersion. You first have to pull the UserData from the WorkPackage and then access the forms. ex.UserData = WorkPackage.toValue(3, "UserData")Forms = UserData.toValue("Forms") Let me know if this helps. Jeremy --------------------------------------------------------------------------------Jeremy O'ConnorProduct SpecialistOpen Text Corporation
Dave_Natoli_(momsys01user3_-_(deleted))
I am using Livelink 9.2.0. I want to add a new comment to an existing workflow. It seems that this bug is still there since UserData always shows undefined for the comment. If I can not retrieve comment list from the WorkPackage, does anyone know how I can add a new comment to the workflow?Thanks,Xiankun
Matt_Miranda_(EAFBMattMiranda_(Delete)_2184030)
What's the progress on fixing this bug? I've tried using this with LAPI for 9.5 and this still seems to be an issue.We would like to use this to avoid having to have both lapi calls and sql calls in the same module of our enterprise workflow status page. Will a new version of lapi be available soon that fixes this?
Ann_Minton
The fix would be in Livelink server, not in the LAPI client interface.The bug is still marked as Open, but I believe this issue was fixed in the Workflow 4.0 upgrade to 9.2SP1, so it should be fixed in Livelink server 9.5.0 and later (the version of LAPI client should not matter).