www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Application Development » Trigger Workflow on SharePoint document...


Trigger Workflow on SharePoint document...Expand / Collapse
Author
Message
Posted Tuesday, August 26, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, August 26, 2008
Posts: 1, Visits: 3
I am trying to get a workflow to trigger when a document is published in a SharePoint library, because there is no event to do this directly I am using the Item Updating event and hope to be able to use a Rule action to detect if the change is Document Status moving from draft to pending. My problem is that I can't find out what the status of the document was before the event and will be after the event, it looks like I should be using the BeforeChangedProperties.Property, this has two members, Key and Value, but I can't find any more information.

BeforeChangedProperty is buried in the XML variables as:

XmlVariables.SPEventData.WebApplication.Site.Web.List.Item.BeforeChangedProperties.Property

When I assign BeforeChangedProperties.Property, BeforeChangedProperties.Property.Key or BeforeChangedProperties.Property.Value to a variable I get an empty string, and I can't find the syntax to pick the item I want (I assume there is a collection or array of properties and I must some how tell Skelta the name or index of the one I want).

If there is anyone out there who has done this I would love to hear how it's done, Thanks

Post #926
Posted Wednesday, August 27, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 2 days ago @ 11:48 PM
Posts: 64, Visits: 69
Hi David,

You should be able to find the property values using XML Iterator. What you will need to do is to create an XM Iterator for the property node and use the foreach activity to loop through the properties and find the value for the respective  property (status property).

Regards,

RSimon

Post #927
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 6:13pm

 
Execution: 0.094.10 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company