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)
CSIDE and OScript
How to retrieve workflow form values?
Sunny_Chia
Hi,Am a beginner in Oscript, been trying to write a script that can capture my workflow form values but to no avail. Would really appreciate any advice or suggestions!
Find more posts tagged with
Comments
Appu_Nair
I am sure everybody in this forum was a beginner.I was fortunate to apprentice under John Simon,COP.He gave me these functionsWe used these extensively for our eventscripts at COP.Let me know if you can follow these.The builder documentation contains an example for manipulating workflow attributes.The forms package is next in the list and the data structure is very similar to category parsing."GetForMAndAttributesinOscript.rtf" can be accessed via the following link:
https://knowledge.opentext.com/knowledge/llisapi.dll/open/16174863
John W. Simon, Jr.
Nair is being too kind!The example Nair gave you is old (but still works). There were some hard coded values in there for type and subtype. I think below is a better example even though it also contains hard code (in this case maprec was passed in so we didn't have to go get it).Object objWFAttributes = $WFMain.WFPackageSubsystem.GetItemByName( 'WFAttributes' )Object objWFComments = $WFMain.WFPackageSubsystem.GetItemByName( 'WFComments' )//// get the comment and attributes passed in//for package in mapRec.WORK_PACKAGES if ( package.TYPE == objWFAttributes.fType ) && ( package.SUBTYPE == objWFAttributes.fSubType ) attrData = package.USERDATA elseif ( package.TYPE == objWFComments.fType ) && ( package.SUBTYPE == objWFComments.fSubType ) commentData = package.USERDATA endend