More in this section
Forums / Developing with Sitefinity / Creating a (very) customized workflow in SiteFinity 3.7

Creating a (very) customized workflow in SiteFinity 3.7

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    3 posts
    23 Jul 2011
    25 Jul 2011
    Link to this post
    I have the following requirements for a workflow in SiteFinity 3.7.  I believe that some of the requirements are not possible, so I'd like to clarify which (if any) aren't and analyze if there are workarounds for these or if they're supported in SiteFinity 4.x.

    The basic use case would be this:
    1.  A piece of generic content is created.
    2.  The content is sent through a workflow based on tag.  So content tagged to "environment" would go through a different workflow / approval process that something tagged "legal".
    3.  Each workflow would require a 3-step approval process.  So when content is submitted for approval, first User A would approve it.  Once User A had approved it, User B could.  Then user C.  Finally after all necessary approval, an admin (or some other role) could publish it.
    4.  Comments should be made for both approvals or declines.
    5.  Notifications should be sent to pertinent groups/roles on approval or decline.

    I don't believe that SiteFinity supports a lot of this out of the box.  So far my plan is basically this:

    1.  Create a lot of different roles to support the various workflows. 
    2.  Modify the approval page to support comments in a method similar to what is found here:  The difference is instead of just including the comments in the e-mail, I'd save them off to a new table in our database.  The goal would be to display them on the page and be able to view comments made by other users.  Notifications could also be handled here.
    3.  Further extend the approval page to include custom accept/decline buttons.  Basically these would function outside of the actual workflow and update another new table in our database.  I believe this could be a way to achieve a multi-step approval process.  Basically User C in the example above would be the only user with actual Approve permissions.  Users A and B could have view-only permissions but could use these 2 buttons to trigger notifications and simulate part of the desired workflow.
    4.  Modify the AllPagesList.ascx control to filter the list of pages a user sees by role/content tags, so that users only see pages that they should.

    I do have a few questions:

    1.  Does everything I said above make sense and seem feasible / is there a better approach?
    2.  Can generic content be sent through workflows or only the pages that use the content? 
        2.1  If only pages can go through a workflow, how do we handle the case where a page is approved and published, then later the content is updated?  Restrict users to only be able to edit generic content blocks through the Pages section and not in the Modules section?  Or is this automatically handled?

    I'm relatively new to SiteFinity, so any help/direction/code/etc. would be greatly appreciated.  I'm also happy to try to clarify things if anything I've said thus far isn't clear.

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    28 Jul 2011
    Link to this post
    Hi Jeremy,

    Page workflow and content workflow are completely separate types of workflow. Page workflow is independent of content workflow. If workflow on content items is enabled they are sent through workflow and pages display only items which have been passed through the publish stage. Pages go through workflow independently and the approval process there is for the controls added to the page, not for the content coming from modules. Please take a look at the bellow forum threads containing samples on how to achieve the customization of workflow:

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Erik
    Erik avatar
    62 posts
    02 May 2011
    01 Aug 2011
    Link to this post
    I am looking into doing the complex workflows that Jeremy talked about in SiteFinity 4.x. Are there any examples out there that do what he was talking about?

    I already checked out this one:
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    02 Aug 2011
    Link to this post
    Hello Erik,

    We use Windows Workflow Foundation 4 and there are XAML files which you can edit in Visual Studio and extend the workflow with additional steps, notifications etc.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered