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
new WF - Data Type
Wolfgang_Binder_(sglcadmin2_-_(deleted))
in the WAPI Documentation ...there are listed the : Class AttributesClass Methodsthere are also listed two methodsLoadWorkDataListWorkDataso I can use in a special Script(work is a WAPIWORK)dynamic test = wapi.ListWorkData(work)this is working!!! but it's not the InfoI need in this place. For this I would needLoadWorkDatareplacing ListWorkData with LoadWorkData,compiling the Script brings an error in the SDK :"The class 'WAPI' has no function named 'LoadWorkData'."(this String was copied from the error window)Why ? Whats wrong there ?I'm programming an new WF data type.We are not saving our spetial custom attributeinfo in the Database , as the Attributes do !how should I save in the SaveWorkData() ?and how should the LoadWorkData () look like ?so, that in the GetEvaluateConditionInfo()I can use the Data I need to give to the IF-Step for doing the rooting of the wf-process.and also in the TaskDone() I need the Dataso that the process Step can set my "spetial attributes"as the process Step can do it with the "OpenTextWF-Attributes" ?remember, we are not saving the package data in thedatabase !please help me on this topic !I have to succeed ...Wolfgang.Binder@siemens.com
Find more posts tagged with
Comments
Jeff_Lang_(lang_(Delete)_2245920)
The method LoadWorkData in the documentation is a bug. There is no WAPI function called that. The WAPIPkg does contain that method though.When adding a new dataType you should not have to call that method. All you have to do is implement the three object that controll a datatype and workflow will call the methods on those objects for you.The three objects that you must subclass and override the features are:$WFMain:WF Root:WFObjectTypes:WFDataTypes$WebWork:WebWork Root:WFPackage$WebWFP:WebWFP Root:WFPackage
Wolfgang_Binder_(sglcadmin2_-_(deleted))
hello again !I want to implement also the "ChecklistAttributes"in the evaluate Step. I debugged the Knowledge,now I know what the GetEvaluateConditionInfo()should return. but I'm not sure if the "data" is okay !?I will try to explain what I've done yesterday :I found a Table called "WData" with a "Data_UserData" inside.I found out that the scripts "GetEvaluateConditionInfo"or "LoadWorkData" an others gett "data" from thistable. So now I wrote a script "_update_WData". This is saving my Pkg-Data in "WData" directly with capi.This script is called from SaveWorkData.I'm not sure, if this is okay. And I suppose, that there must exist a WAPI or WAPIPkg Script resolving this better .Please tell me how I have to save my data !I made yesterday some tests, and the Evaluate-Steps dowork. But I have to be sure that I'm building the moduleon the right architecture. I will do more test today,but with the right information I can save a lot of time ! I also saw there an WAPI-Attribute called "WORK_CUSTOMDATA"Is this a good place to store the data ?for what is this attribute ?wish you a nice day !Wolfgang
Jeff_Lang_(lang_(Delete)_2245920)
You can save your data in the WData table, but depending upon how much data you are saving and whether or not you want to write LiveReports against it you might consider saving the data in a separate table and storing the key to the correct rows in the table in the WData table. You can look at the Comments datatype as an example of how that works.I you want to keep the data in the WData table then in your SaveWorkData script you should use the calls WAPI.GetWorkData and WAPI.SetWorkData. Use the GetWorkData call to get the description for your datatype and then use the SetWorkData to change the UserData field.All the columns that end in CUSTOMDATA are for customizations. They must contain an Assoc because the same column may be used by more than one custom module. You should store your data in a field in the assoc.
Wolfgang_Binder_(sglcadmin2_-_(deleted))
that sounds good !Thanks