Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > retrieving updated node data under workflow procedure View modes: 
User avatar
Member
Member
seanbun-gmail - 4/29/2009 7:19:52 AM
   
retrieving updated node data under workflow procedure
Hi,

I have applied a workflow on a document type - article. Below is my scenario:

I created and publish an article
Headline field : "headline A"
Abstract field : "Abstract A"
Body field: "Body text A".
Workflow Status: Published.

Then I edited the same article
Headline field : "headline B"
Abstract field : "Abstract B"
Body field: "Body text B".
Workflow Status: "Submit to Approval".

These are the new value showing in cmsdesk.

However, when I check the database article view and using the API Treenode.getvalue("field") method, both show the old values. I believe the new value will be updated until the "edited" article published again.

Could you tell me where the "waiting for approval" values store? How could I get those values throught API?

Please advise.

Matt


User avatar
Member
Member
seanbun-gmail - 4/29/2009 7:02:33 PM
   
RE:retrieving updated node data under workflow procedure
Found.

Latest version of data could be retrieved by the WorkflowEngine.DocumentHelper class.

Cheers,
Matt

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/11/2009 3:13:20 PM
   
RE:retrieving updated node data under workflow procedure
Hi,

The last published version is always displayed on the live site and also in this case old values are stored for the document. The data for non published documents should be available in CMS_VersionHistory table. Moreover, could you please take a look in this workflow API example to see how the documents under workflow should be handled?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
seanbun-gmail - 5/11/2009 7:38:26 PM
   
RE:retrieving updated node data under workflow procedure
Awesome. It is very helpful to know all versions of data stored in the CMS_VersionHistory table in the format of XML.