<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Workflow state on document move</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-di-forum/100169/workflow-state-on-document-move</link><description>When I move a document that is in a specific workflow state from one folder to another, then the state is reset to the first state of the workflow attached to the destination folder. 
 This happens even if the source and destination folders are attached</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Workflow state on document move</title><link>https://communities.bentley.com/thread/296406?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2014 06:07:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c92646e6-9aed-4c4f-b4bb-d275eaee9058</guid><dc:creator>Jeff Burrill</dc:creator><description>&lt;p&gt;My solution takes care of the current version as well as old versions. The methods used to preserve state of old versions is the part that goes beyond the normal API function that handles the current version. But the basis for all of it is in hooks. &lt;/p&gt;
&lt;p&gt;The API provides the ability to add a &amp;quot;hook&amp;quot; into different points of event chains. In my solution, the hook gets registered and runs whenever a document move operation is detected in ProjectWise Explorer. Using information available to the hook about the document being processed at that time, you can use API methods to manipulate the document, such as set the workflow state.&lt;/p&gt;
&lt;p&gt;There are some good examples that demonstrate hook usage in the SDK samples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Workflow state on document move</title><link>https://communities.bentley.com/thread/296404?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2014 05:37:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e9bf07a4-faab-4b1d-a6d4-4df52e2812ac</guid><dc:creator>Leif Frederiksen</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;So what you are saying is, that you created a solution to keep the correct state on the current version, but not on the older versions (the ones that are also hardest to fix afterwards)?&lt;/p&gt;
&lt;p&gt;I do not have experience with the SDK (yet) - can you enlighten me a bit on how you accomplished this?&lt;/p&gt;
&lt;p&gt;/Leif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Workflow state on document move</title><link>https://communities.bentley.com/thread/296356?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 17:28:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a4cafacf-0d48-4b7b-88b7-350aec46832f</guid><dc:creator>Jeff Burrill</dc:creator><description>&lt;p&gt;There is no out-of-the box setting to force preservation of workflow state when moving between folders, even if they share the same workflow. Though some times it might appear they are being preserved, that is purely coincidental; e.g. the state applied after the move (dependent on what your datasource settings are for &amp;quot;Creation in workflow&amp;quot;) just happens to match what it was before the move.&lt;/p&gt;
&lt;p&gt;Prior versions cannot be modified in any way, and this includes workflow state. Given that rationale, I do not understand why workflow states aren&amp;#39;t automatically preserved&amp;nbsp;on the older versions when a document with versions is moved - at least between folders with the same workflow, but I digress...&lt;/p&gt;
&lt;p&gt;I put in a CR for these very issues a while ago (sorry, can&amp;#39;t recall the CR#) but to date, they haven&amp;#39;t been addressed. In the meantime, I came up with my own workarounds. Using the SDK, I was able to solve state preservation for current versions using a hook. I also engineered my own SDK solution to modifying state of prior versions, but that one goes beyond the native capabilities of the SDK and would not be supported by Bentley.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>