Sitecore workflow on specific fields of an item -


It is possible to set up a workflow in Sitcom, such as changing some of the items in the item is not the reason to go to the item Appropriate states for?

We want to make many areas editable and instantly publishable, while implementing workflow for changes in a specific area. If this field was edited, the item will be sent to the 'Waiting approval' state.

I did not know anything on this.

I have written some code that came out of this snippet and an example: "lang-cs prettyprint-override"> class filter {public zero process (workflow pipeline ARGs Args) {Database Master = Factory. Database ("Master"); Item items = arguments Datatoms; IWorkflow wf = master.WorkflowProvider.GetWorkflow (item); Allow BlueSififf to make any changes to Bodifield (item, wf); } /// & lt; Summary & gt; /// If the 'body' field of the item was not modified then by changing the pending workflow status to /// for approval and submitting the publication command to /// & lt; / Summary & gt; /// & lt; Param name = "item" & gt; & Lt; / Param & gt; /// & lt; Param name = "wf" & gt; & Lt; / Param & gt; Zero allow PWT If you do not have modified the body using WT (Item Item, IWorkflow wf) {using (New Cyclone Security MODEL. SecurityDisabler ()) {If true (true // pseudo code for now) {wf. Execute ("{command-id}", items, editing and publishing all other areas except "body", false); }}}}

The problem is that the 'next state' of 'command' overwrites any item I make in the 'action' item in 'action'.

It looks like a custom workflow action, if this is a trick, it will fire when the user changes And the program checks for changes on the field.

If any changes have been made, the workflow has been moved to 'waiting for approval' status, if not only exit and pass it in the automatically-published state.

A title snippet "Right" on the SDN, I have tried not to do it myself, but it should probably do the trick.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -